s_role.go 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package schema
  2. import "time"
  3. // Role Role对象
  4. type Role struct {
  5. RecordID string `json:"record_id"` // 记录id
  6. Name string `json:"name"` // 角色名称
  7. Code string `json:"code"` // 角色编码(11 系统管理员 12 企业管理员 99 企业员工)
  8. ChartNum int `json:"chart_num"` // 对话轮次/日
  9. Creator string `json:"creator"` // 创建者
  10. CreatorName string `json:"creator_name"` // 创建者名称
  11. CreatedAt time.Time `json:"created_at"` // 创建时间
  12. Menus Menus `json:"menus"` // 菜单权限
  13. }
  14. // RoleQueryParam 查询条件
  15. type RoleQueryParam struct {
  16. Code string
  17. Status int
  18. LikeCode string
  19. LikeName string
  20. RecordIDs []string
  21. }
  22. // RoleQueryOptions Role对象查询可选参数项
  23. type RoleQueryOptions struct {
  24. PageParam *PaginationParam // 分页参数
  25. }
  26. type Roles []*Role
  27. // RoleQueryResult Role对象查询结果
  28. type RoleQueryResult struct {
  29. Data Roles
  30. PageResult *PaginationResult
  31. }