2021-06-07 17:22:07 +08:00
|
|
|
|
package form
|
|
|
|
|
|
|
|
|
|
|
|
// 分配角色资源表单信息
|
|
|
|
|
|
type RoleResourceForm struct {
|
2023-06-11 19:59:35 +08:00
|
|
|
|
Id int `json:"id"`
|
|
|
|
|
|
ResourceIds string `json:"resourceIds"`
|
2021-06-07 17:22:07 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 保存角色信息表单
|
|
|
|
|
|
type RoleForm struct {
|
2023-06-11 19:59:35 +08:00
|
|
|
|
Id int `json:"id"`
|
2021-06-07 17:22:07 +08:00
|
|
|
|
Status int `json:"status"` // 1:可用;-1:不可用
|
2023-06-11 19:59:35 +08:00
|
|
|
|
Name string `json:"name" binding:"required"`
|
|
|
|
|
|
Code string `json:"code" binding:"required"`
|
2021-06-07 17:22:07 +08:00
|
|
|
|
Remark string `json:"remark"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 账号分配角色表单
|
|
|
|
|
|
type AccountRoleForm struct {
|
2023-06-11 19:59:35 +08:00
|
|
|
|
Id int `json:"id" binding:"required"`
|
|
|
|
|
|
RoleIds string `json:"roleIds"`
|
2021-06-07 17:22:07 +08:00
|
|
|
|
}
|