投诉骑手

This commit is contained in:
苏尹岚
2019-12-23 15:27:06 +08:00
parent 3f98af6a11
commit 166f5320d3
7 changed files with 119 additions and 0 deletions

View File

@@ -875,3 +875,32 @@ func (c *OrderController) RefreshOrdersWithoutJxStoreID() {
return retVal, "", err
})
}
// @Title 获取投诉原因
// @Description 获取投诉原因
// @Param token header string true "认证token"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetComplaintReasons [get]
func (c *OrderController) GetComplaintReasons() {
c.callGetComplaintReasons(func(params *tOrderGetComplaintReasonsParams) (retVal interface{}, errCode string, err error) {
retVal = orderman.GetComplaintReasons()
return retVal, "", err
})
}
// @Title 投诉骑手(三方运送)
// @Description 投诉骑手(三方运送)
// @Param token header string true "认证token"
// @Param orderID formData string true "订单号"
// @Param vendorID formData int true "平台厂商ID"
// @Param complaintID formData int true "投诉原因ID"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /ComplaintRider [post]
func (c *OrderController) ComplaintRider() {
c.callComplaintRider(func(params *tOrderComplaintRiderParams) (retVal interface{}, errCode string, err error) {
err = orderman.ComplaintRider(params.Ctx, params.OrderID,params.VendorID, params.ComplaintID)
return retVal, "", err
})
}