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

增加订单消息类型

上级 c0b34d2d
......@@ -24,7 +24,6 @@ const (
//API请求日志
ApiRequestTopic = "apiRequest"
//消息类型
//商品消息
......@@ -38,10 +37,14 @@ const (
OrderComfirmReceiveGoods = 202 //确认收货
OrderSuccess = 203 //交易成功
OrderCancel = 204 //订单取消
RefundApply = 300 //申请售后
RefundAgree = 301 //商家同意售后
RefundRefuse = 302 //商家拒绝售后
RefundSuccess = 303 //售后成功
OrderPay = 205 //延迟支付
OrderRejection = 206 //已拒收
OrderReturn = 207 //拒收已入库
RefundApply = 300 //申请售后
RefundAgree = 301 //商家同意售后
RefundRefuse = 302 //商家拒绝售后
RefundSuccess = 303 //售后成功
//标签消息
TagsImport = 401 //导入标签
......@@ -52,7 +55,7 @@ const (
ErrMsgParamEmpty = "该类型消息对应字段不能为空"
ErrMsgAppIDEmpty = "该类型消息appid字段不能为空"
ErrMsgTpye = "错误的消息类型"
ErrMsgTpye = "错误的消息类型"
)
//推送下游对应字段
......@@ -207,9 +210,8 @@ func (p *NsqProducer) NotifyServer(notifyServer *NotifyServer) (err error) {
return
}
/*
api请求日志 20220310 gk
api请求日志 20220310 gk
*/
func (p *NsqProducer) NotifyApiLog(notifyApiLog *NotifyApiLog) (err error) {
......@@ -219,4 +221,4 @@ func (p *NsqProducer) NotifyApiLog(notifyApiLog *NotifyApiLog) (err error) {
logs.Info("NotifyApiLog", "消息内容:【%v】", string(jsonBytes))
}
return
}
\ No newline at end of file
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论