// ========================================================================== // This is auto-generated by gf cli tool. Fill this file as you wish. // ========================================================================== package model import ( "dashoo.cn/micro/app/model/internal" "dashoo.cn/opms_libary/request" ) // SysRole is the golang structure for table sys_role. type SysRole internal.SysRole // Fill with you ideas below. type SysRoleReq struct { RoleName string `json:"roleName" v:"required#状态不能为空"` // 角色名称 RoleKey string `json:"roleKey" v:"required#状态不能为空"` // 角色权限字符串 Status string `json:"status" v:"required|in:10,20#状态不能为空|状态只能为10或20"` // 角色状态(10正常20停用) MenuCheckStrictly string `json:"menuCheckStrictly"` // 菜单树选择项是否关联显示 DeptCheckStrictly string `json:"deptCheckStrictly"` // 部门树选择项是否关联显示 DataScope string `json:"dataScope"` // 数据范围;(10:全部数据权限 20:自定数据权限 30:本部门数据权限 40:本部门及以下数据权限) Sort int `json:"sort"` // 显示顺序 Remark string `son:"remark"` // 备注 MenuIds []int `json:"menuIds,omitempty"` } type UpdateSysRoleReq struct { Id int `json:"id" v:"required#角色ID不能为空"` // 角色ID SysRoleReq } // SelectPageReq 分页请求参数 type SelectPageReq struct { RoleName string `p:"roleName"` //参数名称 Status string `p:"status"` //状态 request.PageReq } // StatusSetReq 修改状态参数 type StatusSetReq struct { RoleId uint `p:"roleId" v:"required#角色ID不能为空"` Status uint `p:"status" v:"required#状态不能为空"` } // DataScopeReq 角色数据授权参数 type DataScopeReq struct { RoleId uint `p:"roleId" v:"required#角色ID不能为空"` DataScope uint `p:"dataScope" v:"required#权限范围不能为空"` DeptIds []uint `p:"deptIds"` }