model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigModel

type ConfigModel struct {
	Id         uint            `json:"-"`
	Key        string          `json:"key"  gorm:"index"`
	Value      string          `json:"value"`
	CreateTime utils.LocalTime `gorm:"type:datetime;autoCreateTime" json:"createTime"`
	UpdateTime utils.LocalTime `gorm:"type:datetime;autoUpdateTime" json:"updateTime"`
}

配置

func (ConfigModel) TableName

func (ConfigModel) TableName() string

自定义表名

type RunnerModel

type RunnerModel struct {
	Id          uint            `json:"-"`
	RunnerId    string          `json:"runnerId" gorm:"index" `
	Title       string          `json:"title"`
	Url         string          `json:"url"`
	AccessToken string          `json:"accessToken"`
	Status      bool            `json:"status"`
	CreateTime  utils.LocalTime `gorm:"type:datetime;autoCreateTime" json:"createTime"`
	UpdateTime  utils.LocalTime `gorm:"type:datetime;autoUpdateTime" json:"updateTime"`
}

func (RunnerModel) TableName

func (RunnerModel) TableName() string

自定义表名

type TaskLogModel

type TaskLogModel struct {
	Id        uint   `json:"-"`
	TaskLogId string `gorm:"index" json:"taskLogId"`
	TaskId    string `json:"taskId"`
	Title     string `json:"title"`
	Url       string `json:"url"`
	// RunnerId   string          `json:"runnerId"`
	// TaskName   string          `json:"taskName"`
	Status int `json:"status"`
	// Result     string          `json:"result"`
	EndTime    utils.LocalTime `gorm:"type:datetime" json:"endTime"`
	CreateTime utils.LocalTime `gorm:"type:datetime;autoCreateTime" json:"createTime"`
	UpdateTime utils.LocalTime `gorm:"type:datetime;autoUpdateTime" json:"updateTime"`
}

func (TaskLogModel) TableName

func (TaskLogModel) TableName() string

自定义表名

type TaskModel

type TaskModel struct {
	Id     uint   `json:"-"`
	TaskId string `gorm:"index" json:"taskId"`
	Title  string `json:"title"`
	// RunnerId   string          `json:"runnerId"`
	// TaskName   string          `json:"taskName"`
	// Method     string          `json:"cron"`
	Cron       string          `json:"cron"`
	Url        string          `json:"url"`
	Status     bool            `json:"status"`
	CreateTime utils.LocalTime `gorm:"type:datetime;autoCreateTime" json:"createTime"`
	UpdateTime utils.LocalTime `gorm:"type:datetime;autoUpdateTime" json:"updateTime"`
}

func (TaskModel) TableName

func (TaskModel) TableName() string

自定义表名

type UserModel

type UserModel struct {
	Id         uint            `json:"-"`
	UserId     string          `gorm:"index" json:"userId"`
	Username   string          `gorm:"index" json:"username"`
	Password   string          `json:"password"`
	Status     bool            `json:"status"`
	CreateTime utils.LocalTime `gorm:"type:datetime;autoCreateTime" json:"createTime"`
	UpdateTime utils.LocalTime `gorm:"type:datetime;autoUpdateTime" json:"updateTime"`
}

func (UserModel) TableName

func (UserModel) TableName() string

自定义表名

Jump to

Keyboard shortcuts

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