This commit is contained in:
苏尹岚
2021-02-22 14:17:58 +08:00
parent 38f703c482
commit a0f9e96fcb

View File

@@ -1,8 +1,13 @@
package model
import (
"time"
)
const (
MessageTypeStore = 1
MessageTypeUser = 2
MessageTypeStore = 1
MessageTypeUser = 2
MessageTypeStoreAct = 3
)
const (
@@ -23,9 +28,10 @@ var (
type Message struct {
ModelIDCULD
Type int8 `json:"type"`
Type int8 `json:"type"` //1发给门店2发给用户3发给门店的统计活动参与信息
Title string `json:"title"`
Content string `orm:"type(text)" json:"content"`
ActInfo string `json:"actInfo"` //活动信息,时间平台等
}
func (*Message) TableIndex() [][]string {
@@ -35,6 +41,12 @@ func (*Message) TableIndex() [][]string {
}
}
type MessageActInfo struct {
BeginAt time.Time `json:"beginAt"`
EndAt time.Time `json:"endAt"`
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
}
type MessageStatus struct {
ModelIDCULD
MessageID int `orm:"column(message_id)" json:"messageID"`