mirror of
https://github.com/tiger1103/gfast.git
synced 2026-10-15 17:37:30 +00:00
50 lines
1.3 KiB
Go
50 lines
1.3 KiB
Go
/*
|
|
* @desc:角色api
|
|
* @company:云南奇讯科技有限公司
|
|
* @Author: yixiaohu<yxh669@qq.com>
|
|
* @Date: 2022/3/30 9:16
|
|
*/
|
|
|
|
package system
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
|
|
"github.com/tiger1103/gfast/v3/internal/app/system/model"
|
|
"github.com/tiger1103/gfast/v3/internal/app/system/model/entity"
|
|
)
|
|
|
|
type RoleListReq struct {
|
|
g.Meta `path:"/role/list" tags:"角色管理" method:"get" summary:"角色列表"`
|
|
RoleName string `p:"roleName"` //参数名称
|
|
Status string `p:"status"` //状态
|
|
commonApi.PageReq
|
|
}
|
|
|
|
type RoleListRes struct {
|
|
g.Meta `mime:"application/json"`
|
|
commonApi.ListRes
|
|
List []*entity.SysRole `json:"list"`
|
|
}
|
|
|
|
type RoleGetParamsReq struct {
|
|
g.Meta `path:"/role/getParams" tags:"角色管理" method:"get" summary:"角色编辑参数"`
|
|
}
|
|
|
|
type RoleGetParamsRes struct {
|
|
g.Meta `mime:"application/json"`
|
|
Menu []*model.SysAuthRuleInfoRes `json:"menu"`
|
|
}
|
|
|
|
type RoleAddReq struct {
|
|
g.Meta `path:"/role/add" tags:"角色管理" method:"post" summary:"添加角色"`
|
|
Name string `p:"name" v:"required#角色名称不能为空"`
|
|
Status uint `p:"status" `
|
|
ListOrder uint `p:"listOrder" `
|
|
Remark string `p:"remark" `
|
|
MenuIds []uint `p:"menuIds"`
|
|
}
|
|
|
|
type RoleAddRes struct {
|
|
}
|