models

package
v0.0.0-...-88540c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SysJob

type SysJob struct {
	JobId          int    `json:"jobId" gorm:"primaryKey;autoIncrement"` // 编码
	JobName        string `json:"jobName" gorm:"size:255;"`              // 名称
	JobGroup       string `json:"jobGroup" gorm:"size:255;"`             // 任务分组
	JobType        int    `json:"jobType" gorm:"size:1;"`                // 任务类型
	CronExpression string `json:"cronExpression" gorm:"size:255;"`       // cron表达式
	InvokeTarget   string `json:"invokeTarget" gorm:"size:255;"`         // 调用目标
	Args           string `json:"args" gorm:"size:255;"`                 // 目标参数
	MisfirePolicy  int    `json:"misfirePolicy" gorm:"size:255;"`        // 执行策略
	Concurrent     int    `json:"concurrent" gorm:"size:1;"`             // 是否并发
	Status         int    `json:"status" gorm:"size:1;"`                 // 状态
	EntryId        int    `json:"entry_id" gorm:"size:11;"`              // job启动时返回的id
	models.ControlBy
	models.ModelTime

	DataScope string `json:"dataScope" gorm:"-"`
}

func (*SysJob) Generate

func (e *SysJob) Generate() models.ActiveRecord

func (*SysJob) GetId

func (e *SysJob) GetId() interface{}

func (*SysJob) GetList

func (e *SysJob) GetList(tx *gorm.DB, list interface{}) (err error)

func (*SysJob) RemoveAllEntryID

func (e *SysJob) RemoveAllEntryID(tx *gorm.DB) (update SysJob, err error)

func (*SysJob) SetCreateBy

func (e *SysJob) SetCreateBy(createBy int)

func (*SysJob) SetUpdateBy

func (e *SysJob) SetUpdateBy(updateBy int)

func (*SysJob) TableName

func (*SysJob) TableName() string

func (*SysJob) Update

func (e *SysJob) Update(tx *gorm.DB, id interface{}) (err error)

Update 更新SysJob

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL