聊天记录表

This commit is contained in:
苏尹岚
2020-08-19 10:24:38 +08:00
parent 87cc57d3b4
commit 4de2be83c2

View File

@@ -48,3 +48,13 @@ func (*MessageStatus) TableIndex() [][]string {
[]string{"StoreID", "MessageID", "Status"},
}
}
type ImMessageRecord struct {
ModelIDCULD
UserID string `orm:"size(48);column(user_id)" json:"userID"` //消息发送方userID
Receive string `json:"receive"` //接收方ID可以是userID也可以是群ID
Content string `orm:"type(text)" json:"content"` //消息内容
MessageType int `json:"messageType"` //消息类型,文字,图片
StoreID int `orm:"column(store_id)" json:"storeID"`
VendorOrderID string `orm:"column(vendor_order_id);size(48)" json:"vendorOrderID"`
}