NewsNoticeUser.java 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. package com.hssx.cloudmodel.entity;
  2. import com.baomidou.mybatisplus.annotation.TableName;
  3. import com.baomidou.mybatisplus.annotation.IdType;
  4. import com.baomidou.mybatisplus.extension.activerecord.Model;
  5. import com.baomidou.mybatisplus.annotation.TableId;
  6. import com.baomidou.mybatisplus.annotation.TableField;
  7. import java.io.Serializable;
  8. /**
  9. * <p>
  10. *
  11. * </p>
  12. *
  13. * @author 吴涛涛
  14. * @since 2019-08-09
  15. */
  16. @TableName("tb_news_notice_user")
  17. public class NewsNoticeUser extends Model<NewsNoticeUser> {
  18. private static final long serialVersionUID=1L;
  19. /**
  20. * 消息通知者表主键
  21. */
  22. @TableId(value = "id", type = IdType.AUTO)
  23. private Integer id;
  24. /**
  25. * 通知者id
  26. */
  27. @TableField("user_id")
  28. private Integer userId;
  29. /**
  30. * 是否已读 0-未读,1-已读
  31. */
  32. @TableField("is_read")
  33. private Integer isRead;
  34. /**
  35. * 消息通知表id
  36. */
  37. @TableField("news_id")
  38. private Integer newsId;
  39. public Integer getId() {
  40. return id;
  41. }
  42. public void setId(Integer id) {
  43. this.id = id;
  44. }
  45. public Integer getUserId() {
  46. return userId;
  47. }
  48. public void setUserId(Integer userId) {
  49. this.userId = userId;
  50. }
  51. public Integer getIsRead() {
  52. return isRead;
  53. }
  54. public void setIsRead(Integer isRead) {
  55. this.isRead = isRead;
  56. }
  57. public Integer getNewsId() {
  58. return newsId;
  59. }
  60. public void setNewsId(Integer newsId) {
  61. this.newsId = newsId;
  62. }
  63. @Override
  64. protected Serializable pkVal() {
  65. return this.id;
  66. }
  67. @Override
  68. public String toString() {
  69. return "NewsNoticeUser{" +
  70. "id=" + id +
  71. ", userId=" + userId +
  72. ", isRead=" + isRead +
  73. ", newsId=" + newsId +
  74. "}";
  75. }
  76. }