获取微盟订单信息

This commit is contained in:
苏尹岚
2019-11-26 09:36:46 +08:00
parent 22f60a4546
commit 8eef3288db
3 changed files with 309 additions and 41 deletions

View File

@@ -62,3 +62,33 @@ func (c *YongHuiController) UpdateJxPriceByWeimob() {
return retVal, "", err
})
}
// @Title 查询微盟订单
// @Description 查询微盟订单
// @Param token header string true "认证token"
// @Param keyword query string false "查询关键字"
// @Param fromTime formData string false "订单起始时间 (yyyy-mm-dd 00:00:00)"
// @Param toTime formData string false "订单结束时间 (yyyy-mm-dd 00:00:00)"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetWeimobOrders [post]
func (c *YongHuiController) GetWeimobOrders() {
c.callGetWeimobOrders(func(params *tYonghuiGetWeimobOrdersParams) (retVal interface{}, errCode string, err error) {
retVal, err = yonghui.GetWeimobOrders(params.Ctx, params.FromTime, params.ToTime, params.MapData)
return retVal, "", err
})
}
// @Title 根据微盟订单号生成Excel
// @Description 根据微盟订单号生成Excel
// @Param token header string true "认证token"
// @Param orderNo formData string true "订单号"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetWeimobOrdersExcel [post]
func (c *YongHuiController) GetWeimobOrdersExcel() {
c.callGetWeimobOrdersExcel(func(params *tYonghuiGetWeimobOrdersExcelParams) (retVal interface{}, errCode string, err error) {
err = yonghui.GetWeimobOrdersExcel(params.Ctx, params.OrderNo)
return retVal, "", err
})
}