| 1234567891011121314151617181920212223242526272829303132333435363738 |
- package schema
- import "time"
- // Role Role对象
- type Role struct {
- RecordID string `json:"record_id"` // 记录id
- Name string `json:"name"` // 角色名称
- Code string `json:"code"` // 角色编码(11 系统管理员 12 企业管理员 99 企业员工)
- ChartNum int `json:"chart_num"` // 对话轮次/日
- Creator string `json:"creator"` // 创建者
- CreatorName string `json:"creator_name"` // 创建者名称
- CreatedAt time.Time `json:"created_at"` // 创建时间
- Menus Menus `json:"menus"` // 菜单权限
- }
- // RoleQueryParam 查询条件
- type RoleQueryParam struct {
- Code string
- Status int
- LikeCode string
- LikeName string
- RecordIDs []string
- }
- // RoleQueryOptions Role对象查询可选参数项
- type RoleQueryOptions struct {
- PageParam *PaginationParam // 分页参数
- }
- type Roles []*Role
- // RoleQueryResult Role对象查询结果
- type RoleQueryResult struct {
- Data Roles
- PageResult *PaginationResult
- }
|