This commit is contained in:
苏尹岚
2020-12-23 16:49:48 +08:00
parent d5b94fdbd2
commit a2313e4b19

View File

@@ -113,14 +113,16 @@ func (c *JobController) GetJobDetail() {
// @Title 接任务
// @Description 接任务
// @Param token header string true "认证token"
// @Param jobID formData int true "jobID"
// @Param token header string true "认证token"
// @Param jobID formData int true "jobID"
// @Param dropShippingDeliveryID formData int false "一件代发地址id"
// @Param dropShippingCount formData int false "一件代发商品数量"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /AcceptJob [post]
func (c *JobController) AcceptJob() {
c.callAcceptJob(func(params *tJobAcceptJobParams) (retVal interface{}, errCode string, err error) {
_, errCode, err = cms.AcceptJob(params.Ctx, params.JobID)
_, errCode, err = cms.AcceptJob(params.Ctx, params.JobID, params.DropShippingDeliveryID, params.DropShippingCount)
return retVal, errCode, err
})
}