修改订单xinxi
This commit is contained in:
@@ -1182,3 +1182,22 @@ func (c *OrderController) RefreshJdsOrderConsigneeInfo() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 修改订单信息
|
||||
// @Description 修改订单信息
|
||||
// @Param token header string true "认证token"
|
||||
// @Param vendorOrderID formData string true "订单号"
|
||||
// @Param vendorID formData int true "平台ID"
|
||||
// @Param payload formData string true "json数据,格式为goodsOrder"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /UpdateOrderInfo [put]
|
||||
func (c *OrderController) UpdateOrderInfo() {
|
||||
c.callUpdateOrderInfo(func(params *tOrderUpdateOrderInfoParams) (retVal interface{}, errCode string, err error) {
|
||||
payload := make(map[string]interface{})
|
||||
if err = utils.UnmarshalUseNumber([]byte(params.Payload), &payload); err == nil {
|
||||
retVal, err = orderman.UpdateOrderInfo(params.Ctx, params.VendorOrderID, params.VendorID, payload)
|
||||
}
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user