system.go 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. package models
  2. // Dept 用户模型
  3. type SysDept struct {
  4. ID *int64 `json:"id" db:"id" id_type:"AUTO"`
  5. Pid *int64 `json:"pid" db:"pid"`
  6. Name *string `json:"name" db:"name"`
  7. DeptSort *int32 `json:"deptSort" db:"dept_sort"`
  8. FirmFunctionary *string `json:"firmFunctionary" db:"firm_functionary"`
  9. FirmFunctionaryPhone *string `json:"firmFunctionaryPhone" db:"firm_functionary_phone"`
  10. Remark *string `json:"remark" db:"remark"`
  11. TenantId *string `json:"tenantId" db:"tenant_id"`
  12. EmptyField *[]string `json:"emptyField" db:"-"`
  13. }
  14. type SysMenu struct {
  15. ID *int64 `json:"id" db:"id" id_type:"AUTO"`
  16. Pid *int64 `json:"pid" db:"pid"` // 假设pid为0表示根节点
  17. Type *int32 `json:"type" db:"type"`
  18. Title *string `json:"title" db:"title"`
  19. Component *string `json:"component" db:"component"`
  20. MenuSort *int32 `json:"menuSort" db:"menu_sort"`
  21. Icon *string `json:"icon" db:"icon"`
  22. Path *string `json:"path" db:"path"`
  23. Iframe *bool `json:"iframe" db:"iframe"`
  24. Hidden *bool `json:"hidden" db:"hidden"`
  25. EmptyField *[]string `json:"emptyField" db:"-"`
  26. }
  27. type SysRolesMenus struct {
  28. RoleID *int64 `json:"roleId" db:"role_id"`
  29. MenuID *int64 `json:"menuId" db:"menu_id"`
  30. MenuIdList *[]int64 `json:"menuIdList" db:"-"`
  31. }
  32. type SysRole struct {
  33. ID *int64 `json:"id" db:"id" id_type:"AUTO"`
  34. Name *string `json:"name" db:"name"`
  35. Level *int32 `json:"level" db:"level"`
  36. Description *string `json:"description" db:"description"`
  37. DataScope *string `json:"dataScope" db:"data_scope"`
  38. TenantId *string `json:"tenantId" db:"tenant_id"`
  39. EmptyField *[]string `json:"emptyField" db:"-"`
  40. }
  41. type SysUsersRoles struct {
  42. UserID *int64 `json:"userId" db:"user_id"`
  43. RoleID *int64 `json:"roleId" db:"role_id"`
  44. }
  45. type Tenant struct {
  46. ID *string `json:"id" db:"id"`
  47. Name *string `json:"name" db:"name"`
  48. Status *string `json:"status" db:"status"`
  49. ManagerName *string `json:"managerName" db:"manager_name"`
  50. ManagerPhone *string `json:"managerPhone" db:"manager_phone"`
  51. EmptyField *[]string `json:"emptyField" db:"-"`
  52. }