Documentation
¶
Index ¶
- func Paginate(db *gorm.DB, page, pageSize int64) *gorm.DB
- type Base
- func (b *Base) AfterCreate(tx *gorm.DB) error
- func (b *Base) AfterDelete(tx *gorm.DB) error
- func (b *Base) AfterUpdate(tx *gorm.DB) error
- func (b *Base) BeforeCreate(tx *gorm.DB) error
- func (b *Base) BeforeDelete(tx *gorm.DB) error
- func (b *Base) BeforeUpdate(tx *gorm.DB) error
- func (b *Base) GetCreateTime() time.Time
- func (b *Base) GetID() uint
- func (b *Base) GetUpdateTime() time.Time
- type BaseModel
- type Step
- type StepDepend
- type StepEnv
- type StepLog
- type Task
- type TaskEnv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) GetCreateTime ¶
func (*Base) GetUpdateTime ¶
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:步骤名称"`
}
Click to show internal directories.
Click to hide internal directories.