package model import "github.com/gogf/gf/v2/os/gtime" type AgentRoleListParam struct { RoleName string `json:"roleName"` RoleKey string `json:"roleKey"` Status string `json:"status"` CreatedAt []string `json:"createdAt"` } type AgentRoleListModel struct { RoleId int64 `json:"roleId" orm:"role_id"` TenantId string `json:"tenantId" orm:"tenant_id"` DeptId int64 `json:"deptId" orm:"dept_id"` RoleName string `json:"roleName" orm:"role_name"` RoleKey string `json:"roleKey" orm:"role_key"` Status string `json:"status" orm:"status"` CreatedAt *gtime.Time `json:"createdAt" orm:"created_at"` Remark string `json:"remark" orm:"remark"` IsDefaultRole bool `json:"isDefaultRole"` } type AgentRoleSaveParam struct { RoleId int64 `json:"roleId"` DeptId int64 `json:"deptId"` RoleName string `json:"roleName"` RoleKey string `json:"roleKey"` RoleSort int `json:"roleSort"` DataScope string `json:"dataScope"` MenuCheckStrictly int `json:"menuCheckStrictly"` DeptCheckStrictly int `json:"deptCheckStrictly"` Status string `json:"status"` Remark string `json:"remark"` MenuIds []int64 `json:"menuIds"` CreatedAt *gtime.Time `json:"createdAt"` } type AgentRoleViewModel struct { SysRoleViewModel AllowedMenuIds []int64 `json:"allowedMenuIds"` MenuTree []*SysMenuTreeModel `json:"menuTree"` IsDefaultRole bool `json:"isDefaultRole"` }