mirror of
https://github.com/tiger1103/gfast.git
synced 2026-09-23 10:51:07 +00:00
20220405
This commit is contained in:
@@ -47,3 +47,27 @@ type RoleAddReq struct {
|
||||
|
||||
type RoleAddRes struct {
|
||||
}
|
||||
|
||||
type RoleGetReq struct {
|
||||
g.Meta `path:"/role/get" tags:"角色管理" method:"get" summary:"获取角色信息"`
|
||||
Id uint `p:"id" v:"required#角色id不能为空""`
|
||||
}
|
||||
|
||||
type RoleGetRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
Role *entity.SysRole `json:"role"`
|
||||
MenuIds []int `json:"menuIds"`
|
||||
}
|
||||
|
||||
type RoleEditReq struct {
|
||||
g.Meta `path:"/role/edit" tags:"角色管理" method:"put" summary:"修改角色"`
|
||||
Id int64 `p:"id" v:"required#角色id必须"`
|
||||
Name string `p:"name" v:"required#角色名称不能为空"`
|
||||
Status uint `p:"status" `
|
||||
ListOrder uint `p:"listOrder" `
|
||||
Remark string `p:"remark" `
|
||||
MenuIds []uint `p:"menuIds"`
|
||||
}
|
||||
|
||||
type RoleEditRes struct {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user