This commit is contained in:
苏尹岚
2020-10-29 11:45:44 +08:00
parent d515dcc656
commit 9d177646c7
3 changed files with 19 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ type JobController struct {
// @router /PublishJob [post]
func (c *JobController) PublishJob() {
c.callPublishJob(func(params *tJobPublishJobParams) (retVal interface{}, errCode string, err error) {
var job *model.Job
var job *model.JobExt
if err = utils.UnmarshalUseNumber([]byte(params.Payload), &job); err == nil {
err = cms.PublishJob(params.Ctx, job)
}