EsmUserImage.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package com.ydtech.modules.esm.model;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.baomidou.mybatisplus.annotation.TableName;
  6. import com.ydtech.modules.esm.model.vo.EsmUserImageVo;
  7. import lombok.Data;
  8. import java.io.Serializable;
  9. /**
  10. * 人员影像信息
  11. * @TableName esm_user_image
  12. */
  13. @TableName(value ="esm_user_image")
  14. @Data
  15. public class EsmUserImage implements Serializable {
  16. /**
  17. * 主键
  18. */
  19. @TableId(value = "id", type = IdType.AUTO)
  20. private Long id;
  21. /**
  22. * 影像id
  23. */
  24. @TableField(value = "images_id")
  25. private String imagesId;
  26. /**
  27. * 人员影像信息
  28. */
  29. @TableField(value = "user_id")
  30. private String userId;
  31. /**
  32. * 人员影像类型
  33. */
  34. @TableField(value = "type")
  35. private String type;
  36. @TableField(exist = false)
  37. private static final long serialVersionUID = 1L;
  38. public EsmUserImage(EsmUserImageVo esmUserImageVo, String userId) {
  39. this.imagesId = esmUserImageVo.getImageId();
  40. this.userId = userId;
  41. this.type = esmUserImageVo.getType();
  42. }
  43. public EsmUserImage() {
  44. }
  45. public EsmUserImage(Long id, String imagesId, String userId, String type) {
  46. this.id = id;
  47. this.imagesId = imagesId;
  48. this.userId = userId;
  49. this.type = type;
  50. }
  51. }