1
0

SysUserDO.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. package com.simuwang.base.pojo.dos;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableId;
  4. import com.baomidou.mybatisplus.annotation.TableName;
  5. import com.simuwang.base.common.support.BaseEntity;
  6. import com.simuwang.base.pojo.vo.SysUserVO;
  7. import lombok.Getter;
  8. import lombok.Setter;
  9. /**
  10. * FileName: SysUserDO
  11. * Author: chenjianhua
  12. * Date: 2024/9/8 12:45
  13. * Description: ${DESCRIPTION}
  14. */
  15. @Setter
  16. @Getter
  17. @TableName("sys_user")
  18. public class SysUserDO extends BaseEntity<SysUserVO> {
  19. /**
  20. * 用户ID
  21. */
  22. @TableId(value = "user_id", type = IdType.AUTO)
  23. private Integer userId;
  24. /**
  25. * 用户名称
  26. */
  27. private String userName;
  28. /**
  29. * 用户类型
  30. */
  31. private Integer userType;
  32. /**
  33. * 用户邮箱
  34. */
  35. private String email;
  36. /**
  37. * 手机号码
  38. */
  39. private String phonenumber;
  40. /**
  41. * 用户性别
  42. */
  43. private Integer sex;
  44. /**
  45. * 用户头像
  46. */
  47. private String avatar;
  48. /**
  49. * 密码
  50. */
  51. private String password;
  52. /**
  53. * 帐号状态(0正常 1停用)
  54. */
  55. private Integer status;
  56. // /**
  57. // * 删除标志(0代表存在 1代表删除)
  58. // */
  59. // @TableId(value = "del_flag")
  60. // private String delFlag;
  61. // /**
  62. // * 备注
  63. // */
  64. // private String startDate;
  65. // /**
  66. // * 备注
  67. // */
  68. // @TableId(value = "end_date")
  69. // private String endDate;
  70. /**
  71. * 备注
  72. */
  73. private String remark;
  74. @Override
  75. public SysUserVO toVo() {
  76. // return BeanUtil.copyProperties(this, SysUserVO.class);
  77. SysUserVO vo = new SysUserVO();
  78. vo.setUserId(this.userId);
  79. vo.setAvatar(this.avatar);
  80. vo.setEmail(this.email);
  81. vo.setPhonenumber(this.phonenumber);
  82. vo.setPassword(this.password);
  83. vo.setSex(this.sex);
  84. vo.setUserType(this.userType);
  85. vo.setStatus(this.status);
  86. vo.setRemark(this.remark);
  87. vo.setCreatorId(this.getCreatorId());
  88. vo.setCreateTime(this.getCreateTime());
  89. return vo;
  90. }
  91. }