dt_notice_read.go 480 B

12345678910111213141516
  1. package entity
  2. // DtNoticeRead 用户通知已读记录表(解决全局通知 user_id=0 的已读状态问题)
  3. type DtNoticeRead struct {
  4. MysqlBaseModel
  5. UserId int64 `json:"userId" gorm:"uniqueIndex:uk_user_notice;comment:用户ID"`
  6. NoticeId int64 `json:"noticeId" gorm:"uniqueIndex:uk_user_notice;comment:通知ID"`
  7. }
  8. func (*DtNoticeRead) TableName() string {
  9. return "dt_notice_read"
  10. }
  11. func (*DtNoticeRead) Comment() string {
  12. return "用户通知已读记录表"
  13. }