用户发送消息

This commit is contained in:
苏尹岚
2020-09-26 10:30:28 +08:00
parent 6ca608f786
commit a30ba2bf1b
4 changed files with 138 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ package model
const (
MessageTypeStore = 1
MessageTypeUser = 2
)
const (
@@ -36,10 +37,11 @@ func (*Message) TableIndex() [][]string {
type MessageStatus struct {
ModelIDCULD
MessageID int `orm:"column(message_id)" json:"messageID"`
StoreID int `orm:"column(store_id)" json:"storeID"`
Status int8 `json:"status"`
ReadCount int `json:"readCount"`
MessageID int `orm:"column(message_id)" json:"messageID"`
StoreID int `orm:"column(store_id)" json:"storeID"`
Status int8 `json:"status"`
ReadCount int `json:"readCount"`
UserID string `orm:"column(user_id)" json:"userID"`
}
func (*MessageStatus) TableIndex() [][]string {