- package entity
- // DtNoticeRead 用户通知已读记录表(解决全局通知 user_id=0 的已读状态问题)
- type DtNoticeRead struct {
- MysqlBaseModel
- UserId int64 `json:"userId" gorm:"uniqueIndex:uk_user_notice;comment:用户ID"`
- NoticeId int64 `json:"noticeId" gorm:"uniqueIndex:uk_user_notice;comment:通知ID"`
- }
- func (*DtNoticeRead) TableName() string {
- return "dt_notice_read"
- }
- func (*DtNoticeRead) Comment() string {
- return "用户通知已读记录表"
- }
|