mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-05-12 14:52:07 +08:00
[优化]优化目录
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
"pandax/apps/job/entity"
|
||||
"pandax/apps/job/jobs"
|
||||
"pandax/apps/job/services"
|
||||
"pandax/pkg/global_model"
|
||||
model2 "pandax/pkg/global/model"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@@ -19,7 +19,7 @@ type JobApi struct {
|
||||
func (j *JobApi) CreateJob(rc *restfulx.ReqCtx) {
|
||||
var job entity.SysJob
|
||||
restfulx.BindQuery(rc, &job)
|
||||
job.Id = global_model.GenerateID()
|
||||
job.Id = model2.GenerateID()
|
||||
job.Owner = rc.LoginAccount.UserName
|
||||
job.OrgId = rc.LoginAccount.OrganizationId
|
||||
j.JobApp.Insert(job)
|
||||
|
||||
Reference in New Issue
Block a user