[优化]优化目录

This commit is contained in:
PandaX
2023-11-07 16:45:23 +08:00
parent 3a4cea5b26
commit 6bdc4b1dd6
37 changed files with 97 additions and 98 deletions

View File

@@ -1,11 +1,11 @@
package entity
import (
"pandax/pkg/global_model"
"pandax/pkg/global/model"
)
type SysJob struct {
global_model.BaseAuthModel
model.BaseAuthModel
JobName string `json:"jobName" gorm:"type:varchar(255);"` // 名称
TargetInvoke string `json:"targetInvoke" gorm:"type:varchar(64);comment:目标类型"` //调用目标 设备还是产品
TargetArgs string `json:"targetArgs" gorm:"type:varchar(64);comment:目标Id"` //目标传参 设备或者产品id

View File

@@ -1,11 +1,11 @@
package entity
import (
"pandax/pkg/global_model"
"pandax/pkg/global/model"
)
type JobLog struct {
global_model.BaseAuthModel
model.BaseAuthModel
Name string `json:"name" gorm:"type:varchar(128);comment:任务名称"`
EntryId int `json:"entryId" gorm:"type:int;comment:任务id"`
TargetInvoke string `json:"targetInvoke" gorm:"type:varchar(128);comment:调用方法"`