base_user.go 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package user
  5. import (
  6. "github.com/gogf/gf/os/gtime"
  7. internal2 "lims_adapter/model/user/internal"
  8. )
  9. // BaseUser is the golang structure for table base_user.
  10. type BaseUser internal2.BaseUser
  11. // Fill with you ideas below.
  12. type UserQualification struct {
  13. Id int `orm:"Id,primary" json:"id"` //
  14. UserName string `orm:"UserName" json:"userName"` // 用户登录名
  15. RealName string `orm:"RealName" json:"realName"` // 用户名
  16. Qualification int `orm:"Qualification" json:"qualification"` // 资格 1普通资格 2资深资格
  17. Mobile string `orm:"Mobile" json:"mobile"` // 手机号
  18. AuthorizeTime *gtime.Time `orm:"AuthorizeTime" json:"authorizeTime"` // 授权时间
  19. }
  20. type UserInfoReq struct {
  21. PageNun int `json:"pageNum"`
  22. PageSize int `json:"pageSize"`
  23. Enabled int `json:"enabled"`
  24. InstrumentId int `json:"instrument_id"`
  25. DepartmentId int `json:"department_id"`
  26. UserName string `json:"user_name"`
  27. Mobile string `json:"mobile"`
  28. ReqType int `json:"req_type"` // 请求类型 设备预约(1:预约资格 2:优先预约权) 主从用户管理(1:主用户查询 2:从用户查询)
  29. }
  30. type UserInfoRsp struct {
  31. Records []BaseUserInfo `json:"records"`
  32. Total int `json:"total"'`
  33. }
  34. // 添加、删除主从用户
  35. type AddMainOrSubReq struct {
  36. Ids []int `json:"ids"` // 用户Id列表
  37. Id int `json:"id"` // 用户Id
  38. ReqType int `json:"req_type"` // 预约资格:1 添加主用户,2添加从用户
  39. }
  40. // 财务账号绑定用户
  41. type UserBindAccountReq struct {
  42. Id int `json:"id"`
  43. UserId int `json:"userId"`
  44. }
  45. type BaseUserInfo struct {
  46. Id int `orm:"Id,primary" json:"id"` //
  47. Uuid string `orm:"Uuid" json:"uuid"` // 用户Id标识,不易猜出
  48. AccCode string `orm:"AccCode" json:"accCode"` // 区分不同App的用户
  49. Code string `orm:"Code" json:"code"` // 编码
  50. UserName string `orm:"UserName" json:"userName"` // 用户登录名
  51. Realname string `orm:"Realname" json:"realname"` // 用户名
  52. RoleId int `orm:"RoleId" json:"roleId"` // 角色id
  53. SecurityLevel int `orm:"SecurityLevel" json:"securityLevel"` //
  54. UserFrom string `orm:"UserFrom" json:"userFrom"` //
  55. CompanyId string `orm:"CompanyId" json:"companyId"` // 公司id
  56. CompanyName string `orm:"CompanyName" json:"companyName"` // 公司名称
  57. DepartmentId string `orm:"DepartmentId" json:"departmentId"` // 部门id
  58. DepartmentName string `orm:"DepartmentName" json:"departmentName"` // 部门名称
  59. WorkgroupId string `orm:"WorkgroupId" json:"workgroupId"` // 工作组id
  60. WorkgroupName string `orm:"WorkgroupName" json:"workgroupName"` // 工作组名称
  61. WorkCategory string `orm:"WorkCategory" json:"workCategory"` //
  62. Duty string `orm:"Duty" json:"duty"` // 职务
  63. Title string `orm:"Title" json:"title"` // 头衔
  64. Gender string `orm:"Gender" json:"gender"` // 性别
  65. Birthday string `orm:"Birthday" json:"birthday"` //
  66. Mobile string `orm:"Mobile" json:"mobile"` //
  67. Telephone string `orm:"Telephone" json:"telephone"` //
  68. Email string `orm:"Email" json:"email"` //
  69. OICQ string `orm:"OICQ" json:"oICQ"` //
  70. HomeAddress string `orm:"HomeAddress" json:"homeAddress"` //
  71. UserPassword string `orm:"UserPassword" json:"userPassword"` //
  72. ChangePasswordDate *gtime.Time `orm:"ChangePasswordDate" json:"changePasswordDate"` // 改密码时间
  73. CommunicationPassword string `orm:"CommunicationPassword" json:"communicationPassword"` //
  74. PublicKey string `orm:"PublicKey" json:"publicKey"` //
  75. SignedPassword string `orm:"SignedPassword" json:"signedPassword"` //
  76. Lang string `orm:"Lang" json:"lang"` //
  77. Theme string `orm:"Theme" json:"theme"` //
  78. AllowStartTime *gtime.Time `orm:"AllowStartTime" json:"allowStartTime"` //
  79. AllowEndTime *gtime.Time `orm:"AllowEndTime" json:"allowEndTime"` //
  80. LockStartDate *gtime.Time `orm:"LockStartDate" json:"lockStartDate"` //
  81. LockEndDate *gtime.Time `orm:"LockEndDate" json:"lockEndDate"` //
  82. FirstVisit *gtime.Time `orm:"FirstVisit" json:"firstVisit"` //
  83. PreviousVisit *gtime.Time `orm:"PreviousVisit" json:"previousVisit"` //
  84. LastVisit *gtime.Time `orm:"LastVisit" json:"lastVisit"` //
  85. LogOnCount int `orm:"LogOnCount" json:"logOnCount"` //
  86. IsStaff int `orm:"IsStaff" json:"isStaff"` //
  87. UserOnLine int `orm:"UserOnLine" json:"userOnLine"` //
  88. IsVisible int `orm:"IsVisible" json:"isVisible"` // 是否可视,1为可视
  89. OpenId string `orm:"OpenId" json:"openId"` //
  90. IPAddress string `orm:"IPAddress" json:"iPAddress"` //
  91. MACAddress string `orm:"MACAddress" json:"mACAddress"` //
  92. Question string `orm:"Question" json:"question"` //
  93. AnswerQuestion string `orm:"AnswerQuestion" json:"answerQuestion"` //
  94. UserAddressId int `orm:"UserAddressId" json:"userAddressId"` //
  95. Enabled int `orm:"Enabled" json:"enabled"` // 是否可用
  96. AuditStatus int `orm:"AuditStatus" json:"auditStatus"` // 激活状态(1激活)
  97. DeletionStateCode int `orm:"DeletionStateCode" json:"deletionStateCode"` // 删除状态
  98. SortCode int `orm:"SortCode" json:"sortCode"` //
  99. Description string `orm:"Description" json:"description"` //
  100. CreateOn *gtime.Time `orm:"CreateOn" json:"createOn"` //
  101. CreateUserId string `orm:"CreateUserId" json:"createUserId"` //
  102. CreateBy string `orm:"CreateBy" json:"createBy"` //
  103. ModifiedOn *gtime.Time `orm:"ModifiedOn" json:"modifiedOn"` //
  104. ModifiedUserId string `orm:"ModifiedUserId" json:"modifiedUserId"` //
  105. ModifiedBy string `orm:"ModifiedBy" json:"modifiedBy"` //
  106. Photo string `orm:"Photo" json:"photo"` //
  107. QRCode string `orm:"QRCode" json:"qRCode"` //
  108. QRCodeImage []byte `orm:"QRCodeImage" json:"qRCodeImage"` //
  109. IsCompanyUser int `orm:"IsCompanyUser" json:"isCompanyUser"` // 是否是企业用户(供方字段用)
  110. Superior string `orm:"Superior" json:"superior"` // 上级部门
  111. UnitId int `orm:"UnitId" json:"unitId"` // 二级单位ID(供方字段用)
  112. Unit string `orm:"Unit" json:"unit"` //
  113. DeletedAt *gtime.Time `orm:"DeletedAt" json:"deletedAt"` // 删除时间
  114. }