- normal store weixin msg.

This commit is contained in:
gazebo
2018-12-25 21:50:18 +08:00
parent e90d36e827
commit e8ce327fc0
11 changed files with 396 additions and 15 deletions

View File

@@ -9,19 +9,33 @@ const (
MessageStatusSendAllSuccess = 1
MessageStatusSendSuccess = 2
MessageStatusSendAllFailed = 3
MessageStatusRead = 4
)
type Message struct {
ModelIDCULD
Type int8
Title string
Content string
Type int8 `json:"type"`
Title string `json:"title"`
Content string `json:"content"`
}
func (*Message) TableIndex() [][]string {
return [][]string{
[]string{"CreatedAt"},
[]string{"DeletedAt"},
}
}
type MessageStatus struct {
ModelIDCULD
MessageID int
StoreID int
Status int8
MessageID int `orm:"column(message_id)" json:"messageID"`
StoreID int `orm:"column(store_id)" json:"storeID"`
Status int8 `json:"status"`
ReadCount int `json:"readCount"`
}
func (*MessageStatus) TableIndex() [][]string {
return [][]string{
[]string{"MessageID", "Status"},
[]string{"StoreID", "MessageID", "Status"},
}
}