sys_role.go 2.1 KB

1234567891011121314151617181920212223242526272829
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
  3. // ==========================================================================
  4. package internal
  5. import (
  6. "github.com/gogf/gf/os/gtime"
  7. )
  8. // SysRole is the golang structure for table sys_role.
  9. type SysRole struct {
  10. Id int `orm:"id,primary" json:"id"` // 角色ID
  11. RoleName string `orm:"role_name" json:"roleName"` // 角色名称
  12. RoleKey string `orm:"role_key" json:"roleKey"` // 角色权限字符串
  13. DataScope string `orm:"data_scope" json:"dataScope"` // 数据范围;(10:全部数据权限 20:自定数据权限 30:本部门数据权限 40:本部门及以下数据权限)
  14. MenuCheckStrictly string `orm:"menu_check_strictly" json:"menuCheckStrictly"` // 菜单树选择项是否关联显示
  15. DeptCheckStrictly string `orm:"dept_check_strictly" json:"deptCheckStrictly"` // 部门树选择项是否关联显示
  16. Status string `orm:"status" json:"status"` // 角色状态(10正常20停用)
  17. Sort int `orm:"sort" json:"sort"` // 显示顺序
  18. Remark string `orm:"remark" json:"remark"` // 备注
  19. CreatedBy int `orm:"created_by" json:"createdBy"` // 创建者
  20. CreatedName string `orm:"created_name" json:"createdName"` // 创建人
  21. CreatedTime *gtime.Time `orm:"created_time" json:"createdTime"` // 创建时间
  22. UpdatedBy int `orm:"updated_by" json:"updatedBy"` // 更新者
  23. UpdatedName string `orm:"updated_name" json:"updatedName"` // 更新人
  24. UpdatedTime *gtime.Time `orm:"updated_time" json:"updatedTime"` // 更新时间
  25. DeletedTime *gtime.Time `orm:"deleted_time" json:"deletedTime"` // 删除时间
  26. }