UserRelationships.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package com.zhentao.userRelationships.domain;
  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 java.io.Serializable;
  7. import java.util.Date;
  8. import lombok.Data;
  9. /**
  10. * 用户好友关系表
  11. * @TableName user_relationships
  12. */
  13. @TableName(value ="user_relationships")
  14. @Data
  15. public class UserRelationships implements Serializable {
  16. /**
  17. * 关系ID
  18. */
  19. @TableId(type = IdType.AUTO)
  20. private Integer id;
  21. /**
  22. * 用户ID
  23. */
  24. private Long userId;
  25. /**
  26. * 好友ID
  27. */
  28. private Long friendId;
  29. /**
  30. * 好友备注
  31. */
  32. private String remark;
  33. /**
  34. * 状态(0-待确认,1-已好友,2-已拉黑)
  35. */
  36. private Integer status;
  37. /**
  38. * 创建时间
  39. */
  40. private Date createdAt;
  41. /**
  42. * 更新时间
  43. */
  44. private Date updatedAt;
  45. /**
  46. * 0 没加入 1加入黑名单
  47. */
  48. private Integer isBlacklist;
  49. /**
  50. * 0没有删除 1已删除
  51. */
  52. private Integer isDel;
  53. /**
  54. * 0可以观看 1不能观看朋友圈
  55. */
  56. private Integer isMoments;
  57. @TableField(exist = false)
  58. private static final long serialVersionUID = 1L;
  59. }