123456789101112131415161718192021222324252627282930313233343536373839 |
- package model
- import "iot_manager_service/app/system/dao"
- type RsqRoleList struct {
- Records []dao.Role `json:"records"`
- Current int `json:"current"`
- Size int `json:"size"`
- Pages int `json:"pages"`
- Total int `json:"total"`
- }
- type ReqRoleRemove struct {
- IDs int64 `json:"ids"`
- Name string `json:"name"`
- }
- type ReqRoleGrant struct {
- RoleIds string `json:"roleIds"`
- MenuIds string `json:"menuIds"`
- DataScopeIds string `json:"dataScopeIds"`
- ApiScopeIds string `json:"apiScopeIds"`
- }
- type RspRoleTree struct {
- RoleDetails []RoleDetail `json:"data"`
- }
- type RoleDetail struct {
- HasChildren bool `json:"hasChildren"`
- ID string `json:"id"`
- ParentId string `json:"parentId"`
- Title string `json:"title"`
- Key string `json:"key"`
- Value string `json:"value"`
- Children []RoleDetail `json:"children"`
- }
- const ExistChild = "需要删除的记录中存在子角色,请先删除子角色!"
|