45 lines
1.2 KiB
Go
45 lines
1.2 KiB
Go
package v1
|
|
|
|
import (
|
|
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model"
|
|
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model/response"
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
)
|
|
|
|
type RoleListReq struct {
|
|
g.Meta `path:"/role/list" method:"get" tags:"代理商角色权限" summary:"角色权限列表" x-check-permission:"cpm:agent:role:list"`
|
|
model.AgentRoleListParam
|
|
}
|
|
|
|
type RoleListRes struct {
|
|
response.PageResult
|
|
Data []*model.AgentRoleListModel `json:"items"`
|
|
}
|
|
|
|
type RoleViewReq struct {
|
|
g.Meta `path:"/role/view" method:"get" tags:"代理商角色权限" summary:"角色权限详情" x-check-permission:"cpm:agent:role:query"`
|
|
RoleId int64 `json:"roleId"`
|
|
}
|
|
|
|
type RoleViewRes struct {
|
|
model.AgentRoleViewModel
|
|
}
|
|
|
|
type RoleSaveReq struct {
|
|
g.Meta `path:"/role/save" method:"post" tags:"代理商角色权限" summary:"保存角色权限" x-check-permission:"cpm:agent:role:edit"`
|
|
model.AgentRoleSaveParam
|
|
}
|
|
|
|
type RoleSaveRes struct {
|
|
RoleId int64 `json:"roleId"`
|
|
}
|
|
|
|
type RoleDeleteReq struct {
|
|
g.Meta `path:"/role/delete" method:"post" tags:"代理商角色权限" summary:"删除角色权限" x-check-permission:"cpm:agent:role:remove"`
|
|
RoleId int64 `json:"roleId"`
|
|
RoleIds []int64 `json:"roleIds"`
|
|
}
|
|
|
|
type RoleDeleteRes struct{}
|