添加快递

This commit is contained in:
邹宗楠
2022-06-28 10:13:21 +08:00
parent c84b67d67e
commit d5fa7c2a36
4 changed files with 93 additions and 1 deletions

View File

@@ -151,3 +151,43 @@ func (c *QBiDaExpressController) CancelWayVendorOrder() {
return nil, "", nil
})
}
// QueryUserOrderList 获取用户订单列表QueryUserOrderList
// @Title Q必达
// @Description 获取用户订单列表
// @Param token header string true "管理员token"
// @Param expressType formData int false "就是type快递公司"
// @Param orderStatus formData int false "订单状态"
// @Param pageNum formData int true "页码"
// @Param pageSize formData int true "页数"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /QueryUserOrderList [post]
func (c *QBiDaExpressController) QueryUserOrderList() {
c.callQueryUserOrderList(func(params *tExpressQueryUserOrderListParams) (interface{}, string, error) {
result, err := bidaServer.QueryUserOrderList(params.Ctx.GetUserID(), params.ExpressType, params.OrderStatus, params.PageNum, params.PageSize)
if err != nil {
return nil, "", err
}
return result, "", err
})
}
// GetOrderDetail 查询订单详情
// @Title Q必达
// @Description 获取订单详情
// @Param token header string true "管理员token"
// @Param expressType formData int true "就是type快递公司"
// @Param orderNo formData string true "订单Id三方Id"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetOrderDetail [post]
func (c *QBiDaExpressController) GetOrderDetail() {
c.callGetOrderDetail(func(params *tExpressGetOrderDetailParams) (interface{}, string, error) {
result, err := bidaServer.QueryOrderDetail(params.ExpressType, params.OrderNo)
if err != nil {
return nil, "", err
}
return result, "", nil
})
}