InfoUser.java 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  1. package com.ruoyi.system.domain;
  2. import com.baomidou.mybatisplus.annotation.FieldFill;
  3. import com.baomidou.mybatisplus.annotation.IdType;
  4. import com.baomidou.mybatisplus.annotation.TableField;
  5. import com.baomidou.mybatisplus.annotation.TableId;
  6. import com.baomidou.mybatisplus.annotation.TableName;
  7. import com.ruoyi.common.annotation.Excel;
  8. import lombok.Data;
  9. import com.fasterxml.jackson.databind.annotation.JsonSerialize;
  10. import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
  11. import lombok.EqualsAndHashCode;
  12. import org.apache.commons.lang3.builder.ToStringBuilder;
  13. import org.apache.commons.lang3.builder.ToStringStyle;
  14. import java.math.BigDecimal;
  15. import java.util.Date;
  16. import javax.persistence.GeneratedValue;
  17. /**
  18. * 用户信息对象 info_user
  19. *
  20. * @author ruoyi
  21. * @date 2023-06-25
  22. */
  23. @Data
  24. @TableName(value = "info_user")
  25. @EqualsAndHashCode(callSuper = false)
  26. public class InfoUser
  27. {
  28. private static final long serialVersionUID = 1L;
  29. @TableId(type = IdType.AUTO)
  30. @GeneratedValue
  31. /** 用户ID */
  32. private Long userId;
  33. /** 用户名 */
  34. @Excel(name = "用户名")
  35. private String userName;
  36. /** 手机号码 */
  37. @Excel(name = "手机号码")
  38. private String phone;
  39. /** 用户昵称 */
  40. @Excel(name = "用户昵称")
  41. private String nickName;
  42. /** 用户类型: 0普通用户 1 商家 2 骑手 3夜市 */
  43. @Excel(name = "用户类型")
  44. private String userType;
  45. /** 用户邮箱 */
  46. @Excel(name = "用户邮箱")
  47. private String email;
  48. /** 用户性别(0男 1女 2未知) */
  49. @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知")
  50. private String sex;
  51. /** 头像地址 */
  52. @Excel(name = "头像地址")
  53. private String avatar;
  54. /** 密码 */
  55. @Excel(name = "密码")
  56. private String password;
  57. /** 帐号状态(0正常 1停用) */
  58. @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
  59. private String status;
  60. /** 删除标志(0代表存在 1代表删除) */
  61. @Excel(name = "删除标志", readConverterExp = "0=代表存在,1=代表删除")
  62. private String delFlag;
  63. /** 会员标识 */
  64. @Excel(name = "会员标识")
  65. private transient String vip;
  66. /** 用户唯一标识 */
  67. @Excel(name = "用户唯一标识")
  68. private String cid;
  69. /** 我的邀请码 */
  70. @Excel(name = "我的邀请码")
  71. private String mycode;
  72. /** 被邀请标识 */
  73. @Excel(name = "被邀请标识")
  74. private String thiscode;
  75. /** 抽成 */
  76. @Excel(name = "抽成")
  77. private Double commission;
  78. /** 附件 */
  79. @Excel(name = "附件")
  80. private String annex;
  81. /** 审核状态 */
  82. @Excel(name = "审核状态", readConverterExp = "0=未审核,1=已审核")
  83. private String auditStatus;
  84. /** 司机审核状态 */
  85. @Excel(name = "司机审核状态", readConverterExp = "0=未审核,1=已审核")
  86. private String shijStatus;
  87. /** 联系电话 */
  88. @Excel(name = "联系电话")
  89. private String telPhone;
  90. /** 驾驶证 */
  91. @Excel(name = "驾驶证")
  92. private String driversLicense;
  93. /** 行驶证 */
  94. @Excel(name = "行驶证")
  95. private String drivingLicense;
  96. /** 车辆照片 */
  97. @Excel(name = "车辆照片")
  98. private String vehiclePhotos;
  99. /** 车牌 */
  100. @Excel(name = "车牌")
  101. private String licensePlate;
  102. /** 负责人 */
  103. @Excel(name = "负责人")
  104. private String fullName;
  105. /** 身份证/护照号 */
  106. @Excel(name = "身份证/护照号")
  107. private String idNumber;
  108. /** 商户类型 */
  109. @Excel(name = "商户类型")
  110. private String merchantType;
  111. /** 银行信息 */
  112. @Excel(name = "银行信息")
  113. private String bankAccount;
  114. /** 身份证照片 */
  115. @Excel(name = "身份证照片")
  116. private String passportPhoto;
  117. /** 银行信息照片 */
  118. @Excel(name = "银行信息照片")
  119. private String bankPhoto;
  120. /** 商家说明 */
  121. @Excel(name = "商家说明")
  122. private String merchantIntroduction;
  123. /** 创建时间 */
  124. @TableField(fill = FieldFill.INSERT)
  125. private Date createdAt;
  126. /** 积分钱包 */
  127. @TableField(exist = false)
  128. private Long pointsWallet;
  129. /** 骑手星数 */
  130. @TableField(exist = false)
  131. private Double star;
  132. /** 离线标识 :0 在线 1 离线*/
  133. private String offline;
  134. /** 关联摊位ID(摊位主使用) */
  135. private Long storeId;
  136. /** 夜市地址 */
  137. private String address;
  138. /** 夜市经度 */
  139. private BigDecimal longitude;
  140. /** 夜市纬度 */
  141. private BigDecimal latitude;
  142. /** 距离(km) */
  143. @TableField(exist = false)
  144. private Double juli;
  145. /** IM 平台 API 密钥(extCreate 返回) */
  146. @Excel(name = "IM apiKey")
  147. private String imApiKey;
  148. /** IM 平台用户ID(extCreate 返回,长整型)。序列化为字符串,规避前端 Long 精度丢失 */
  149. @Excel(name = "IM userId")
  150. @JsonSerialize(using = ToStringSerializer.class)
  151. private Long imUserId;
  152. /** 设备推送 token(普通推送):Android FCM token / iOS APNs device token */
  153. private String deviceToken;
  154. /** iOS VoIP 推送 token(PushKit,用于语音/视频来电推送)。显式映射列 voip_token,避免 MyBatis-Plus 驼峰转下划线歧义 */
  155. @TableField("voip_token")
  156. private String voIPToken;
  157. public void setUserId(Long userId)
  158. {
  159. this.userId = userId;
  160. }
  161. public Long getUserId()
  162. {
  163. return userId;
  164. }
  165. public void setUserName(String userName) {this.userName = userName;}
  166. public String getUserName() { return userName; }
  167. public void setPhone(String phone)
  168. {
  169. this.phone = phone;
  170. }
  171. public String getPhone()
  172. {
  173. return phone;
  174. }
  175. public void setNickName(String nickName)
  176. {
  177. this.nickName = nickName;
  178. }
  179. public String getNickName()
  180. {
  181. return nickName;
  182. }
  183. public void setUserType(String userType)
  184. {
  185. this.userType = userType;
  186. }
  187. public String getUserType()
  188. {
  189. return userType;
  190. }
  191. public void setEmail(String email)
  192. {
  193. this.email = email;
  194. }
  195. public String getEmail()
  196. {
  197. return email;
  198. }
  199. public void setSex(String sex)
  200. {
  201. this.sex = sex;
  202. }
  203. public String getSex()
  204. {
  205. return sex;
  206. }
  207. public void setAvatar(String avatar)
  208. {
  209. this.avatar = avatar;
  210. }
  211. public String getAvatar()
  212. {
  213. return avatar;
  214. }
  215. public void setPassword(String password)
  216. {
  217. this.password = password;
  218. }
  219. public String getPassword()
  220. {
  221. return password;
  222. }
  223. public void setStatus(String status)
  224. {
  225. this.status = status;
  226. }
  227. public String getStatus()
  228. {
  229. return status;
  230. }
  231. public void setDelFlag(String delFlag)
  232. {
  233. this.delFlag = delFlag;
  234. }
  235. public String getDelFlag()
  236. {
  237. return delFlag;
  238. }
  239. public void setCid(String cid)
  240. {
  241. this.cid = cid;
  242. }
  243. public String getCid()
  244. {
  245. return cid;
  246. }
  247. public void setMycode(String mycode)
  248. {
  249. this.mycode = mycode;
  250. }
  251. public String getMycode()
  252. {
  253. return mycode;
  254. }
  255. public void setThiscode(String thiscode)
  256. {
  257. this.thiscode = thiscode;
  258. }
  259. public String getThiscode()
  260. {
  261. return thiscode;
  262. }
  263. public void setCommission(Double commission)
  264. {
  265. this.commission = commission;
  266. }
  267. public Double getCommission()
  268. {
  269. return commission;
  270. }
  271. public String getAnnex() {
  272. return annex;
  273. }
  274. public void setAnnex(String annex) {
  275. this.annex = annex;
  276. }
  277. public String getAuditStatus() {
  278. return auditStatus;
  279. }
  280. public void setAuditStatus(String auditStatus) {
  281. this.auditStatus = auditStatus;
  282. }
  283. public String getTelPhone() {
  284. return telPhone;
  285. }
  286. public void setTelPhone(String telPhone) {
  287. this.telPhone = telPhone;
  288. }
  289. public String getShijStatus() {
  290. return shijStatus;
  291. }
  292. public void setShijStatus(String shijStatus) {
  293. this.shijStatus = shijStatus;
  294. }
  295. public String getDriversLicense() {
  296. return driversLicense;
  297. }
  298. public void setDriversLicense(String driversLicense) {
  299. this.driversLicense = driversLicense;
  300. }
  301. public String getDrivingLicense() {
  302. return drivingLicense;
  303. }
  304. public void setDrivingLicense(String drivingLicense) {
  305. this.drivingLicense = drivingLicense;
  306. }
  307. public String getVehiclePhotos() {
  308. return vehiclePhotos;
  309. }
  310. public void setVehiclePhotos(String vehiclePhotos) {
  311. this.vehiclePhotos = vehiclePhotos;
  312. }
  313. public String getLicensePlate() {
  314. return licensePlate;
  315. }
  316. public void setLicensePlate(String licensePlate) {
  317. this.licensePlate = licensePlate;
  318. }
  319. public String getFullName() {
  320. return fullName;
  321. }
  322. public void setFullName(String fullName) {
  323. this.fullName = fullName;
  324. }
  325. public String getIdNumber() {
  326. return idNumber;
  327. }
  328. public void setIdNumber(String idNumber) {
  329. this.idNumber = idNumber;
  330. }
  331. public String getMerchantType() {
  332. return merchantType;
  333. }
  334. public void setMerchantType(String merchantType) {
  335. this.merchantType = merchantType;
  336. }
  337. public String getBankAccount() {
  338. return bankAccount;
  339. }
  340. public void setBankAccount(String bankAccount) {
  341. this.bankAccount = bankAccount;
  342. }
  343. public String getPassportPhoto() {
  344. return passportPhoto;
  345. }
  346. public void setPassportPhoto(String passportPhoto) {
  347. this.passportPhoto = passportPhoto;
  348. }
  349. public String getBankPhoto() {
  350. return bankPhoto;
  351. }
  352. public void setBankPhoto(String bankPhoto) {
  353. this.bankPhoto = bankPhoto;
  354. }
  355. public String getMerchantIntroduction() {
  356. return merchantIntroduction;
  357. }
  358. public void setMerchantIntroduction(String merchantIntroduction) {
  359. this.merchantIntroduction = merchantIntroduction;
  360. }
  361. public Date getCreatedAt() {
  362. return createdAt;
  363. }
  364. public void setCreatedAt(Date createdAt) {
  365. this.createdAt = createdAt;
  366. }
  367. @Override
  368. public String toString() {
  369. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  370. .append("userId", getUserId())
  371. .append("userName", getUserName())
  372. .append("phone", getPhone())
  373. .append("nickName", getNickName())
  374. .append("userType", getUserType())
  375. .append("email", getEmail())
  376. .append("sex", getSex())
  377. .append("avatar", getAvatar())
  378. .append("password", getPassword())
  379. .append("status", getStatus())
  380. .append("delFlag", getDelFlag())
  381. .append("cid", getCid())
  382. .append("mycode", getMycode())
  383. .append("mycode", getMycode())
  384. .append("thiscode", getThiscode())
  385. .append("commission", getCommission())
  386. .append("annex", getAnnex())
  387. .append("auditStatus", getAuditStatus())
  388. .append("telPhone", getTelPhone())
  389. .append("shijStatus", getShijStatus())
  390. .append("driversLicense", getDriversLicense())
  391. .append("drivingLicense", getDrivingLicense())
  392. .append("vehiclePhotos", getVehiclePhotos())
  393. .append("licensePlate", getLicensePlate())
  394. .append("fullName", getFullName())
  395. .append("idNumber", getIdNumber())
  396. .append("merchantType", getMerchantType())
  397. .append("bankAccount", getBankAccount())
  398. .append("passportPhoto", getPassportPhoto())
  399. .append("bankPhoto", getBankPhoto())
  400. .append("merchantIntroduction", getMerchantIntroduction())
  401. .toString();
  402. }
  403. }