package model import "service-api/global" type UserNotice struct { global.BASE_ID UserID string `gorm:"size:50;index" json:"userId"` //用户id NoticeID int `gorm:"size:10;index" json:"noticeId"` //通知项id Status int `gorm:"size:1;index" json:"status"` //是否禁止通知 0-禁止 1-不限制 global.TIME_MODEL } func (UserNotice) TableName() string { return "user_notice" }