message加字段

This commit is contained in:
苏尹岚
2020-08-20 09:08:39 +08:00
parent 6a509d6185
commit 636794d508

View File

@@ -56,6 +56,7 @@ type ImMessageRecord struct {
Content string `orm:"type(text)" json:"content"` //消息内容
MessageType int `json:"messageType"` //消息类型,文字,图片
StoreID int `orm:"column(store_id)" json:"storeID"`
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
VendorOrderID string `orm:"column(vendor_order_id);size(48)" json:"vendorOrderID"`
}
@@ -64,6 +65,7 @@ func (*ImMessageRecord) TableIndex() [][]string {
[]string{"UserID"},
[]string{"ReceiveID"},
[]string{"StoreID"},
[]string{"VendorID"},
[]string{"VendorOrderID"},
}
}