tenant: add member management APIs
This commit is contained in:
26
backend/app/http/tenant/dto/tenant_user_admin.go
Normal file
26
backend/app/http/tenant/dto/tenant_user_admin.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package dto
|
||||
|
||||
import (
|
||||
"quyun/v2/app/requests"
|
||||
"quyun/v2/database/models"
|
||||
)
|
||||
|
||||
// AdminTenantUserJoinResponse 返回租户管理员添加成员后的结果。
|
||||
type AdminTenantUserJoinResponse struct {
|
||||
// TenantUser 租户成员关系记录。
|
||||
TenantUser *models.TenantUser `json:"tenant_user,omitempty"`
|
||||
}
|
||||
|
||||
// AdminTenantUserRoleUpdateForm 租户成员角色更新表单。
|
||||
type AdminTenantUserRoleUpdateForm struct {
|
||||
// Role 角色:member/tenant_admin。
|
||||
Role string `json:"role,omitempty"`
|
||||
}
|
||||
|
||||
// AdminTenantUserListFilter 租户管理员查询成员列表的过滤条件。
|
||||
type AdminTenantUserListFilter struct {
|
||||
// Pagination 分页参数(page/limit)。
|
||||
requests.Pagination `json:",inline" query:",inline"`
|
||||
// UserID 按用户ID过滤(可选)。
|
||||
UserID *int64 `json:"user_id,omitempty" query:"user_id"`
|
||||
}
|
||||
Reference in New Issue
Block a user