base_user.go 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. IsSelf string `json:"isSelf"` // 1 查看全部;其他 查看自己
  30. }
  31. type UserInfoRsp struct {
  32. Records []BaseUserInfo `json:"records"`
  33. Total int `json:"total"'`
  34. }
  35. type SearchUserInfoRsp struct {
  36. Records []SearchUserInfo `json:"records"`
  37. Total int `json:"total"'`
  38. }
  39. // 添加、删除主从用户
  40. type AddMainOrSubReq struct {
  41. Ids []int `json:"ids"` // 用户Id列表
  42. Id int `json:"id"` // 用户Id
  43. ReqType int `json:"req_type"` // 预约资格:1 添加主用户,2添加从用户
  44. }
  45. // 财务账号绑定用户
  46. type UserBindAccountReq struct {
  47. Id int `json:"id"`
  48. UserId int `json:"userId"`
  49. }
  50. type BaseUserInfo struct {
  51. Id int `orm:"Id,primary" json:"id"` //
  52. Uuid string `orm:"Uuid" json:"uuid"` // 用户Id标识,不易猜出
  53. AccCode string `orm:"AccCode" json:"accCode"` // 区分不同App的用户
  54. Code string `orm:"Code" json:"code"` // 编码
  55. UserName string `orm:"UserName" json:"userName"` // 用户登录名
  56. Realname string `orm:"Realname" json:"realname"` // 用户名
  57. RoleId int `orm:"RoleId" json:"roleId"` // 角色id
  58. SecurityLevel int `orm:"SecurityLevel" json:"securityLevel"` //
  59. UserFrom string `orm:"UserFrom" json:"userFrom"` //
  60. CompanyId string `orm:"CompanyId" json:"companyId"` // 公司id
  61. CompanyName string `orm:"CompanyName" json:"companyName"` // 公司名称
  62. DepartmentId string `orm:"DepartmentId" json:"departmentId"` // 部门id
  63. DepartmentName string `orm:"DepartmentName" json:"departmentName"` // 部门名称
  64. WorkgroupId string `orm:"WorkgroupId" json:"workgroupId"` // 工作组id
  65. WorkgroupName string `orm:"WorkgroupName" json:"workgroupName"` // 工作组名称
  66. WorkCategory string `orm:"WorkCategory" json:"workCategory"` //
  67. Duty string `orm:"Duty" json:"duty"` // 职务
  68. Title string `orm:"Title" json:"title"` // 头衔
  69. Gender string `orm:"Gender" json:"gender"` // 性别
  70. Birthday string `orm:"Birthday" json:"birthday"` //
  71. Mobile string `orm:"Mobile" json:"mobile"` //
  72. Telephone string `orm:"Telephone" json:"telephone"` //
  73. Email string `orm:"Email" json:"email"` //
  74. OICQ string `orm:"OICQ" json:"oICQ"` //
  75. HomeAddress string `orm:"HomeAddress" json:"homeAddress"` //
  76. UserPassword string `orm:"UserPassword" json:"userPassword"` //
  77. ChangePasswordDate *gtime.Time `orm:"ChangePasswordDate" json:"changePasswordDate"` // 改密码时间
  78. CommunicationPassword string `orm:"CommunicationPassword" json:"communicationPassword"` //
  79. PublicKey string `orm:"PublicKey" json:"publicKey"` //
  80. SignedPassword string `orm:"SignedPassword" json:"signedPassword"` //
  81. Lang string `orm:"Lang" json:"lang"` //
  82. Theme string `orm:"Theme" json:"theme"` //
  83. AllowStartTime *gtime.Time `orm:"AllowStartTime" json:"allowStartTime"` //
  84. AllowEndTime *gtime.Time `orm:"AllowEndTime" json:"allowEndTime"` //
  85. LockStartDate *gtime.Time `orm:"LockStartDate" json:"lockStartDate"` //
  86. LockEndDate *gtime.Time `orm:"LockEndDate" json:"lockEndDate"` //
  87. FirstVisit *gtime.Time `orm:"FirstVisit" json:"firstVisit"` //
  88. PreviousVisit *gtime.Time `orm:"PreviousVisit" json:"previousVisit"` //
  89. LastVisit *gtime.Time `orm:"LastVisit" json:"lastVisit"` //
  90. LogOnCount int `orm:"LogOnCount" json:"logOnCount"` //
  91. IsStaff int `orm:"IsStaff" json:"isStaff"` //
  92. UserOnLine int `orm:"UserOnLine" json:"userOnLine"` //
  93. IsVisible int `orm:"IsVisible" json:"isVisible"` // 是否可视,1为可视
  94. OpenId string `orm:"OpenId" json:"openId"` //
  95. IPAddress string `orm:"IPAddress" json:"iPAddress"` //
  96. MACAddress string `orm:"MACAddress" json:"mACAddress"` //
  97. Question string `orm:"Question" json:"question"` //
  98. AnswerQuestion string `orm:"AnswerQuestion" json:"answerQuestion"` //
  99. UserAddressId int `orm:"UserAddressId" json:"userAddressId"` //
  100. Enabled int `orm:"Enabled" json:"enabled"` // 是否可用
  101. AuditStatus int `orm:"AuditStatus" json:"auditStatus"` // 激活状态(1激活)
  102. DeletionStateCode int `orm:"DeletionStateCode" json:"deletionStateCode"` // 删除状态
  103. SortCode int `orm:"SortCode" json:"sortCode"` //
  104. Description string `orm:"Description" json:"description"` //
  105. CreateOn *gtime.Time `orm:"CreateOn" json:"createOn"` //
  106. CreateUserId string `orm:"CreateUserId" json:"createUserId"` //
  107. CreateBy string `orm:"CreateBy" json:"createBy"` //
  108. ModifiedOn *gtime.Time `orm:"ModifiedOn" json:"modifiedOn"` //
  109. ModifiedUserId string `orm:"ModifiedUserId" json:"modifiedUserId"` //
  110. ModifiedBy string `orm:"ModifiedBy" json:"modifiedBy"` //
  111. Photo string `orm:"Photo" json:"photo"` //
  112. QRCode string `orm:"QRCode" json:"qRCode"` //
  113. QRCodeImage []byte `orm:"QRCodeImage" json:"qRCodeImage"` //
  114. IsCompanyUser int `orm:"IsCompanyUser" json:"isCompanyUser"` // 是否是企业用户(供方字段用)
  115. Superior string `orm:"Superior" json:"superior"` // 上级部门
  116. UnitId int `orm:"UnitId" json:"unitId"` // 二级单位ID(供方字段用)
  117. Unit string `orm:"Unit" json:"unit"` //
  118. DeletedAt *gtime.Time `orm:"DeletedAt" json:"deletedAt"` // 删除时间
  119. }
  120. type SearchUserInfo struct {
  121. BaseUserInfo
  122. MasterId int `orm:"MasterId" json:"master_id"` // 主用户Id
  123. }