- 京西自营商城可以存订单了

This commit is contained in:
gazebo
2019-09-02 18:33:43 +08:00
parent 7ca4429e43
commit 4e617f4ef5
17 changed files with 503 additions and 280 deletions

View File

@@ -0,0 +1,33 @@
package controllers
import (
"git.rosy.net.cn/jx-callback/business/partner/purchase/jx"
"github.com/astaxie/beego"
)
type JxShopController struct {
beego.Controller
}
// @Title 京西自营商城消息回调接口
// @Description 京西自营商城消息回调接口
// @Param appKey formData string true "AppKey"
// @Param msgType formData string true "消息类型"
// @Param subMsgType formData string false "子消息类型"
// @Param thingID formData string false "消息对应的事物ID"
// @Param data formData string false "详细"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /JxMsg [post]
func (c *JxShopController) JxMsg(msgType string) {
c.callJxMsg(func(params *tJxshopJxMsgParams) (retVal interface{}, errCode string, err error) {
retVal, errCode, err = jx.OnCallbackMsg(&jx.CallbackMsg{
AppKey: params.AppKey,
MsgType: params.MsgType,
SubMsgType: params.SubMsgType,
ThingID: params.ThingID,
Data: params.Data,
})
return retVal, "", err
})
}