package api import ( "atlas9.dev/c/core" "atlas9.dev/c/core/iam" ) const ( Path_UserGrants_Add = "POST /UserGrants_Add" Path_UserGrants_Remove = "POST /UserGrants_Remove" Path_UserGrants_ListByTenant = "POST /UserGrants_ListByTenant" Path_UserGrants_ListByUser = "POST /UserGrants_ListByUser" ) type UserGrants_AddReq struct { Grant iam.UserGrant } type UserGrants_AddRes struct{} type UserGrants_RemoveReq struct { Grant iam.UserGrant } type UserGrants_RemoveRes struct{} type UserGrants_ListByTenantReq struct { Tenant core.ID Page core.PageReq } type UserGrants_ListByTenantRes struct { Page core.Page[iam.UserGrant] } type UserGrants_ListByUserReq struct { User core.ID Page core.PageReq } type UserGrants_ListByUserRes struct { Page core.Page[iam.UserGrant] } func (r *UserGrants_AddReq) Prepare() error { return nil } func (r *UserGrants_RemoveReq) Prepare() error { return nil } func (r *UserGrants_ListByTenantReq) Prepare() error { return nil } func (r *UserGrants_ListByUserReq) Prepare() error { return nil }