audit job

This commit is contained in:
苏尹岚
2020-10-16 15:03:16 +08:00
parent 1c1784943e
commit 4737c354e4
5 changed files with 102 additions and 3 deletions

View File

@@ -170,3 +170,19 @@ func (c *JobController) SubmitJob() {
return retVal, "", err
})
}
// @Title 审核任务
// @Description 审核任务
// @Param token header string true "认证token"
// @Param jobOrderID formData int true "jobOrderID"
// @Param status formData int true "审核标志15 是通过20是不通过"
// @Param comment formData string true "审核理由"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /AuditJob [post]
func (c *JobController) AuditJob() {
c.callAuditJob(func(params *tJobAuditJobParams) (retVal interface{}, errCode string, err error) {
err = cms.AuditJob(params.Ctx, params.JobOrderID, params.Status, params.Comment)
return retVal, "", err
})
}