package api import ( "atlas9.dev/c/core" "atlas9.dev/c/core/iam" ) const ( Path_Audit_List = "POST /Audit_List" Path_Audit_ListByUser = "POST /Audit_ListByUser" ) type Audit_ListReq struct { Tenant core.ID Page core.PageReq } type Audit_ListRes struct { Page core.Page[iam.AuditEntry] } type Audit_ListByUserReq struct { UserID core.ID Page core.PageReq } type Audit_ListByUserRes struct { Page core.Page[iam.AuditEntry] } func (r *Audit_ListReq) Prepare() error { if r.Tenant.IsEmpty() { return iam.ErrTenantIDEmpty } return nil } func (r *Audit_ListByUserReq) Prepare() error { if r.UserID.IsEmpty() { return iam.ErrUserIDEmpty } return nil }