go-common/app/job/main/archive-shjd/model/message.go
2019-04-22 18:49:16 +08:00

26 lines
507 B
Go

package model
import "encoding/json"
// Message databus
type Message struct {
Action string `json:"action"`
Table string `json:"table"`
New json.RawMessage `json:"new"`
Old json.RawMessage `json:"old"`
}
// Notify is
type Notify struct {
Table string `json:"table"`
Action string `json:"action"`
Nw *Archive `json:"new"`
Old *Archive `json:"old"`
}
// AccountNotify is
type AccountNotify struct {
Mid int64 `json:"mid"`
Action string `json:"action"`
}