This commit is contained in:
苏尹岚
2020-12-17 09:12:56 +08:00
parent ee27ffdeef
commit e150bf5f59
3 changed files with 59 additions and 1 deletions

View File

@@ -382,3 +382,16 @@ func (c *JobController) UserRefundEjy() {
return retVal, "", err
})
}
// @Title 刷新任务状态
// @Description 刷新任务状态
// @Param token header string true "认证token"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /RefreshJobStatus [post]
func (c *JobController) RefreshJobStatus() {
c.callRefreshJobStatus(func(params *tJobRefreshJobStatusParams) (retVal interface{}, errCode string, err error) {
err = cms.RefreshJobStatus(params.Ctx)
return retVal, "", err
})
}