tables

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Paginate

func Paginate(db *gorm.DB, page, pageSize int64) *gorm.DB

Types

type Base

type Base struct {
	ID        uint      `json:"id" gorm:"primarykey"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

func (*Base) AfterCreate

func (b *Base) AfterCreate(tx *gorm.DB) error

func (*Base) AfterDelete

func (b *Base) AfterDelete(tx *gorm.DB) error

func (*Base) AfterUpdate

func (b *Base) AfterUpdate(tx *gorm.DB) error

func (*Base) BeforeCreate

func (b *Base) BeforeCreate(tx *gorm.DB) error

func (*Base) BeforeDelete

func (b *Base) BeforeDelete(tx *gorm.DB) error

func (*Base) BeforeUpdate

func (b *Base) BeforeUpdate(tx *gorm.DB) error

func (*Base) GetCreateTime

func (b *Base) GetCreateTime() time.Time

func (*Base) GetID

func (b *Base) GetID() uint

func (*Base) GetUpdateTime

func (b *Base) GetUpdateTime() time.Time

type BaseModel

type BaseModel interface {
	GetID() uint
	GetCreateTime() time.Time
	GetUpdateTime() time.Time
}

type Step

type Step struct {
	Base
	models.Step
	TaskName string `json:"task_name,omitempty" gorm:"index;not null;comment:任务名称"`
}

type StepDepend

type StepDepend struct {
	Base
	models.StepDepend
	TaskName string `json:"task_name,omitempty" gorm:"index;not null;comment:任务名称"`
	StepName string `json:"step_name,omitempty" gorm:"index;not null;comment:步骤名称"`
}

type StepEnv

type StepEnv struct {
	Base
	models.Env
	TaskName string `json:"task_name,omitempty" gorm:"index;not null;comment:任务名称"`
	StepName string `json:"step_name,omitempty" gorm:"index;not null;comment:步骤名称"`
}

type StepLog

type StepLog struct {
	Base
	models.Log
	TaskName string `json:"task_name,omitempty" gorm:"index;not null;comment:任务名称"`
	StepName string `json:"step_name,omitempty" gorm:"index;not null;comment:步骤名称"`
}

type Task

type Task struct {
	Base
	models.Task
}

type TaskEnv

type TaskEnv struct {
	Base
	models.Env
	TaskName string `json:"task_name,omitempty" gorm:"index;not null;comment:任务名称"`
}

Jump to

Keyboard shortcuts

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