first commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package mysqlmodel
|
||||
|
||||
type UserNotification struct {
|
||||
Model
|
||||
NotificationUUID string `gorm:"column:notification_uuid"` // 消息UUID
|
||||
UserID int64 `gorm:"column:user_id"` // 接收用户ID
|
||||
MsgType int8 `gorm:"column:msg_type"` // 消息类型 1=点赞通知 2=订单通知 3=系统通知
|
||||
SenderID int64 `gorm:"column:sender_id"` // 发送者ID 系统消息为0
|
||||
Title string `gorm:"column:title"` // 消息标题
|
||||
Content string `gorm:"column:content"` // 消息内容
|
||||
IsRead int8 `gorm:"column:is_read"` // 是否已读 1=未读 2=已读
|
||||
ReadTime int64 `gorm:"column:read_time"` // 阅读时间
|
||||
}
|
||||
|
||||
func (UserNotification) TableName() string {
|
||||
return "user_notifications"
|
||||
}
|
||||
Reference in New Issue
Block a user