新增投诉骑手接口

This commit is contained in:
苏尹岚
2019-12-23 15:28:16 +08:00
parent c978ca1b44
commit 0260014f1e
4 changed files with 62 additions and 0 deletions

View File

@@ -343,3 +343,15 @@ func (a *API) SimulateRearrange(deliveryId int64, mtPeiSongId string) (err error
func (a *API) SimulateReportException(deliveryId int64, mtPeiSongId string) (err error) {
return a.simulateOrderBehavior("reportException", deliveryId, mtPeiSongId)
}
//评价骑手
func (a *API) EvaluateRider(deliveryId int64, mtPeiSongId string, score int, commentContent string) (err error) {
params := map[string]interface{}{
"delivery_id": deliveryId,
"mt_peisong_id": mtPeiSongId,
"score": score,
"comment_content": commentContent,
}
_, err = a.AccessAPI("order/evaluate", params)
return err
}