aa
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user