25 lines
619 B
Go
25 lines
619 B
Go
package model
|
|
|
|
// IDReq 通用 ID 路径参数请求
|
|
type IDReq struct {
|
|
ID uint `path:"id" description:"ID" required:"true"`
|
|
}
|
|
|
|
// UpdateAccountParams 更新账号聚合参数 (用于文档生成)
|
|
type UpdateAccountParams struct {
|
|
IDReq
|
|
UpdateAccountRequest
|
|
}
|
|
|
|
// AssignRolesParams 分配角色聚合参数 (用于文档生成)
|
|
type AssignRolesParams struct {
|
|
IDReq
|
|
AssignRolesRequest
|
|
}
|
|
|
|
// RemoveRoleParams 移除角色聚合参数
|
|
type RemoveRoleParams struct {
|
|
AccountID uint `path:"account_id" description:"账号ID" required:"true"`
|
|
RoleID uint `path:"role_id" description:"角色ID" required:"true"`
|
|
}
|