23 lines
634 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package requests
type RoleRequest struct {
GetRoleList // 获取角色列表
PutRoleStatus // 角色禁用/启用
}
// GetRoleList 获取角色列表
type GetRoleList struct {
RoleName string `json:"role_name" form:"role_name" label:"角色名称"`
Page int `json:"page" form:"page" label:"页码"`
PageSize int `json:"page_size" form:"page_size" label:"每页个数"`
}
// PutRoleStatus 角色禁用/启用
type PutRoleStatus struct {
RoleStatus int `json:"role_status" form:"role_status" validate:"oneof=1 2" label:"角色状态"` // 1:正常 2:禁用)
}
// AddRole 新增角色
type AddRole struct {
}