提交 b7fcaa4f authored 作者: gukai's avatar gukai

消息服务增加发送消息结构体

上级 fe683c6d
package notify
type NotifyReqData struct {
RealSource int `json:"real_source"`
Source int `json:"source"`
Type int `json:"type"`
CreatedTime int `json:"created_time"`
Result string `json:"result"`
}
type NotifyReq struct {
Id int `json:"id"`
Type string `json:"type"`
Data NotifyReqData `json:"data"`
}
//公共message消息
//推送到消息系统的公共消息
type NotifyServer struct {
MsgType int `json:"msg_type"`
MsgData interface{} `json:"msg_data"`
......@@ -22,32 +10,52 @@ type NotifyServer struct {
MsgSendTime int64 `json:"msg_send_time"`
}
//推送到消息系统的售后消息
type NotifyRefundData struct {
AfsServiceId interface{} `json:"afs_service_id"` //三方服务单号
}
//推送到消息系统的订单消息
type NotifyOrderData struct {
ThirdChildOrderSn string `json:"third_child_order_sn"`//三方子订单号
ThirdOrderSn string `json:"third_order_sn"` //三方订单号
}
//推送到消息系统的商品消息
type NotifyGoodsData struct {
ThirdGoodsInfo []ThirdGoods `json:"third_goods"` //三方商品信息
}
type ThirdGoods struct {
ThirdId int `json:"third_id"` //三方商品id
Skus []int `json:"skus"` //三方规格id
}
//通知消息系统
type NotifyMessage struct {
ID int `json:"id"`
Type interface{} `json:"type"`
Data interface{} `json:"data"`
URL string `json:"url"`
AppID int `json:"appID"`
PushTime int `json:"pushTime"`
AppID int `json:"app_id"`
PushTime int `json:"push_time"`
Times int `json:"times"`
}
//通知客户商品/选品消息
type GoodsMsgData struct {
GoodsIDs []int `json:"goods_id"`
}
//通知客户订单消息
type OrderMsgData struct {
OrderSn string `json:"orderSn"`
Sku uint `json:"sku"`
}
//通知客户售后消息
type RefundMsgData struct {
AfterSaleID uint `json:"afterSaleId"`
OrderSn string `json:"orderSn"`
Sku uint `json:"sku"`
}
//通知客户标签消息
type TagsMsgData struct {
Tags string `json:"tags"`
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论