添加快递
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user