model

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MulanPSL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BATCHJOBEXECUTION

type BATCHJOBEXECUTION struct {

	/*    */
	JOBEXECUTIONID int64 `gorm:"column:JOB_EXECUTION_ID;type:bigint(20);PRIMARY_KEY;comment:''" json:"jOBEXECUTIONID,string"`
	/*    */
	VERSION int64 `gorm:"column:VERSION;type:bigint(20);comment:''" json:"vERSION,string"`
	/*    */
	JOBINSTANCEID int64 `gorm:"column:JOB_INSTANCE_ID;type:bigint(20);comment:''" json:"jOBINSTANCEID,string"`
	/*    */
	CREATETIME model.LocalTime `gorm:"column:CREATE_TIME;type:datetime(6);comment:''" json:"cREATETIME"`
	/*    */
	STARTTIME model.LocalTime `gorm:"column:START_TIME;type:datetime(6);comment:''" json:"sTARTTIME"`
	/*    */
	ENDTIME model.LocalTime `gorm:"column:END_TIME;type:datetime(6);comment:''" json:"eNDTIME"`
	/*    */
	STATUS string `gorm:"column:STATUS;type:varchar(10);comment:''" json:"sTATUS"`
	/*    */
	EXITCODE string `gorm:"column:EXIT_CODE;type:varchar(2500);comment:''" json:"eXITCODE"`
	/*    */
	EXITMESSAGE string `gorm:"column:EXIT_MESSAGE;type:varchar(2500);comment:''" json:"eXITMESSAGE"`
	/*    */
	LASTUPDATED model.LocalTime `gorm:"column:LAST_UPDATED;type:datetime(6);comment:''" json:"lASTUPDATED"`
	/*    */
	JOBCONFIGURATIONLOCATION string `gorm:"column:JOB_CONFIGURATION_LOCATION;type:varchar(2500);comment:''" json:"jOBCONFIGURATIONLOCATION"`
}

func (*BATCHJOBEXECUTION) AutoMigrate

func (entity *BATCHJOBEXECUTION) AutoMigrate(db *gorm.DB) error

迁移

func (*BATCHJOBEXECUTION) GetCREATETIME

func (entity *BATCHJOBEXECUTION) GetCREATETIME() model.LocalTime

func (*BATCHJOBEXECUTION) GetENDTIME

func (entity *BATCHJOBEXECUTION) GetENDTIME() model.LocalTime

func (*BATCHJOBEXECUTION) GetEXITCODE

func (entity *BATCHJOBEXECUTION) GetEXITCODE() string

func (*BATCHJOBEXECUTION) GetEXITMESSAGE

func (entity *BATCHJOBEXECUTION) GetEXITMESSAGE() string

func (*BATCHJOBEXECUTION) GetJOBCONFIGURATIONLOCATION

func (entity *BATCHJOBEXECUTION) GetJOBCONFIGURATIONLOCATION() string

func (*BATCHJOBEXECUTION) GetJOBEXECUTIONID

func (entity *BATCHJOBEXECUTION) GetJOBEXECUTIONID() int64

func (*BATCHJOBEXECUTION) GetJOBINSTANCEID

func (entity *BATCHJOBEXECUTION) GetJOBINSTANCEID() int64

func (*BATCHJOBEXECUTION) GetLASTUPDATED

func (entity *BATCHJOBEXECUTION) GetLASTUPDATED() model.LocalTime

func (*BATCHJOBEXECUTION) GetSTARTTIME

func (entity *BATCHJOBEXECUTION) GetSTARTTIME() model.LocalTime

func (*BATCHJOBEXECUTION) GetSTATUS

func (entity *BATCHJOBEXECUTION) GetSTATUS() string

func (*BATCHJOBEXECUTION) GetVERSION

func (entity *BATCHJOBEXECUTION) GetVERSION() int64

func (*BATCHJOBEXECUTION) Ini

func (entity *BATCHJOBEXECUTION) Ini(iniPk bool) *BATCHJOBEXECUTION

iniPk bool:是否初始化主键JOBEXECUTIONID 初始化指针

func (*BATCHJOBEXECUTION) IniNil

func (entity *BATCHJOBEXECUTION) IniNil(iniPk bool) *BATCHJOBEXECUTION

iniPk bool:是否初始化主键JOBEXECUTIONID 初始化指针

func (*BATCHJOBEXECUTION) SetCREATETIME

func (entity *BATCHJOBEXECUTION) SetCREATETIME(CREATETIME model.LocalTime)

func (*BATCHJOBEXECUTION) SetENDTIME

func (entity *BATCHJOBEXECUTION) SetENDTIME(ENDTIME model.LocalTime)

func (*BATCHJOBEXECUTION) SetEXITCODE

func (entity *BATCHJOBEXECUTION) SetEXITCODE(EXITCODE string)

func (*BATCHJOBEXECUTION) SetEXITMESSAGE

func (entity *BATCHJOBEXECUTION) SetEXITMESSAGE(EXITMESSAGE string)

func (*BATCHJOBEXECUTION) SetJOBCONFIGURATIONLOCATION

func (entity *BATCHJOBEXECUTION) SetJOBCONFIGURATIONLOCATION(JOBCONFIGURATIONLOCATION string)

func (*BATCHJOBEXECUTION) SetJOBEXECUTIONID

func (entity *BATCHJOBEXECUTION) SetJOBEXECUTIONID(JOBEXECUTIONID int64)

func (*BATCHJOBEXECUTION) SetJOBINSTANCEID

func (entity *BATCHJOBEXECUTION) SetJOBINSTANCEID(JOBINSTANCEID int64)

func (*BATCHJOBEXECUTION) SetLASTUPDATED

func (entity *BATCHJOBEXECUTION) SetLASTUPDATED(LASTUPDATED model.LocalTime)

func (*BATCHJOBEXECUTION) SetSTARTTIME

func (entity *BATCHJOBEXECUTION) SetSTARTTIME(STARTTIME model.LocalTime)

func (*BATCHJOBEXECUTION) SetSTATUS

func (entity *BATCHJOBEXECUTION) SetSTATUS(STATUS string)

func (*BATCHJOBEXECUTION) SetVERSION

func (entity *BATCHJOBEXECUTION) SetVERSION(VERSION int64)

func (*BATCHJOBEXECUTION) String

func (entity *BATCHJOBEXECUTION) String() string

指定生成结果转json字符串

func (*BATCHJOBEXECUTION) TableName

func (entity *BATCHJOBEXECUTION) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*BATCHJOBEXECUTION) ToString

func (entity *BATCHJOBEXECUTION) ToString() string

func (*BATCHJOBEXECUTION) Unmarshal

func (entity *BATCHJOBEXECUTION) Unmarshal(body string) error

func (*BATCHJOBEXECUTION) UnmarshalBy

func (entity *BATCHJOBEXECUTION) UnmarshalBy(body []byte) error

type BATCHJOBEXECUTIONVo

type BATCHJOBEXECUTIONVo struct {

	/*    */
	JOBEXECUTIONID int64 `gorm:"column:JOB_EXECUTION_ID;type:bigint(20);PRIMARY_KEY;comment:''" json:"jOBEXECUTIONID,string"`
	/*    */
	VERSION int64 `gorm:"column:VERSION;type:bigint(20);comment:''" json:"vERSION,string"`
	/*    */
	JOBINSTANCEID int64 `gorm:"column:JOB_INSTANCE_ID;type:bigint(20);comment:''" json:"jOBINSTANCEID,string"`
	/*    */
	CREATETIME model.LocalTime `gorm:"column:CREATE_TIME;type:datetime(6);comment:''" json:"cREATETIME"`
	/*    */
	STARTTIME model.LocalTime `gorm:"column:START_TIME;type:datetime(6);comment:''" json:"sTARTTIME"`
	/*    */
	ENDTIME model.LocalTime `gorm:"column:END_TIME;type:datetime(6);comment:''" json:"eNDTIME"`
	/*    */
	STATUS string `gorm:"column:STATUS;type:varchar(10);comment:''" json:"sTATUS"`
	/*    */
	EXITCODE string `gorm:"column:EXIT_CODE;type:varchar(2500);comment:''" json:"eXITCODE"`
	/*    */
	EXITMESSAGE string `gorm:"column:EXIT_MESSAGE;type:varchar(2500);comment:''" json:"eXITMESSAGE"`
	/*    */
	LASTUPDATED model.LocalTime `gorm:"column:LAST_UPDATED;type:datetime(6);comment:''" json:"lASTUPDATED"`
	/*    */
	JOBCONFIGURATIONLOCATION string `gorm:"column:JOB_CONFIGURATION_LOCATION;type:varchar(2500);comment:''" json:"jOBCONFIGURATIONLOCATION"`
}

type SysDept

type SysDept struct {

	/*  部门id  */
	DeptId int64 `gorm:"column:dept_id;type:bigint(20);PRIMARY_KEY;comment:'部门id'" json:"deptId,string"`
	/*  父部门id  */
	ParentId int64 `gorm:"column:parent_id;type:bigint(20);comment:'父部门id';default:0" json:"parentId,string"`
	/*  祖级列表  */
	Ancestors string `gorm:"column:ancestors;type:varchar(50);comment:'祖级列表'" json:"ancestors"`
	/*  部门名称  */
	DeptName string `gorm:"column:dept_name;type:varchar(30);comment:'部门名称'" json:"deptName"`
	/*  显示顺序  */
	OrderNum int32 `gorm:"column:order_num;type:int(4);comment:'显示顺序';default:0" json:"orderNum"`
	/*  负责人  */
	Leader string `gorm:"column:leader;type:varchar(20);comment:'负责人'" json:"leader"`
	/*  联系电话  */
	Phone string `gorm:"column:phone;type:varchar(11);comment:'联系电话'" json:"phone"`
	/*  邮箱  */
	Email string `gorm:"column:email;type:varchar(50);comment:'邮箱'" json:"email"`
	/*  部门状态(0正常 1停用)  */
	Status string `gorm:"column:status;type:char(1);comment:'部门状态(0正常 1停用)';default:\'0\'" json:"status"`
	/*  删除标志(0代表存在 2代表删除)  */
	DelFlag string `gorm:"column:del_flag;type:char(1);comment:'删除标志(0代表存在 2代表删除)';default:\'0\'" json:"delFlag"`
	/*  创建者  */
	CreateBy string `gorm:"column:create_by;type:varchar(64);comment:'创建者'" json:"createBy"`
	/*  创建时间  */
	CreateTime model.LocalTime `gorm:"column:create_time;type:datetime;comment:'创建时间'" json:"createTime"`
	/*  更新者  */
	UpdateBy string `gorm:"column:update_by;type:varchar(64);comment:'更新者'" json:"updateBy"`
	/*  更新时间  */
	UpdateTime model.LocalTime `gorm:"column:update_time;type:datetime;comment:'更新时间'" json:"updateTime"`
}

部门表

func (*SysDept) AutoMigrate

func (entity *SysDept) AutoMigrate(db *gorm.DB) error

迁移

func (*SysDept) GetAncestors

func (entity *SysDept) GetAncestors() string

func (*SysDept) GetCreateBy

func (entity *SysDept) GetCreateBy() string

func (*SysDept) GetCreateTime

func (entity *SysDept) GetCreateTime() model.LocalTime

func (*SysDept) GetDelFlag

func (entity *SysDept) GetDelFlag() string

func (*SysDept) GetDeptId

func (entity *SysDept) GetDeptId() int64

func (*SysDept) GetDeptName

func (entity *SysDept) GetDeptName() string

func (*SysDept) GetEmail

func (entity *SysDept) GetEmail() string

func (*SysDept) GetLeader

func (entity *SysDept) GetLeader() string

func (*SysDept) GetOrderNum

func (entity *SysDept) GetOrderNum() int32

func (*SysDept) GetParentId

func (entity *SysDept) GetParentId() int64

func (*SysDept) GetPhone

func (entity *SysDept) GetPhone() string

func (*SysDept) GetStatus

func (entity *SysDept) GetStatus() string

func (*SysDept) GetUpdateBy

func (entity *SysDept) GetUpdateBy() string

func (*SysDept) GetUpdateTime

func (entity *SysDept) GetUpdateTime() model.LocalTime

func (*SysDept) Ini

func (entity *SysDept) Ini(iniPk bool) *SysDept

iniPk bool:是否初始化主键DeptId 初始化指针

func (*SysDept) IniNil

func (entity *SysDept) IniNil(iniPk bool) *SysDept

iniPk bool:是否初始化主键DeptId 初始化指针

func (*SysDept) SetAncestors

func (entity *SysDept) SetAncestors(Ancestors string)

func (*SysDept) SetCreateBy

func (entity *SysDept) SetCreateBy(CreateBy string)

func (*SysDept) SetCreateTime

func (entity *SysDept) SetCreateTime(CreateTime model.LocalTime)

func (*SysDept) SetDelFlag

func (entity *SysDept) SetDelFlag(DelFlag string)

func (*SysDept) SetDeptId

func (entity *SysDept) SetDeptId(DeptId int64)

func (*SysDept) SetDeptName

func (entity *SysDept) SetDeptName(DeptName string)

func (*SysDept) SetEmail

func (entity *SysDept) SetEmail(Email string)

func (*SysDept) SetLeader

func (entity *SysDept) SetLeader(Leader string)

func (*SysDept) SetOrderNum

func (entity *SysDept) SetOrderNum(OrderNum int32)

func (*SysDept) SetParentId

func (entity *SysDept) SetParentId(ParentId int64)

func (*SysDept) SetPhone

func (entity *SysDept) SetPhone(Phone string)

func (*SysDept) SetStatus

func (entity *SysDept) SetStatus(Status string)

func (*SysDept) SetUpdateBy

func (entity *SysDept) SetUpdateBy(UpdateBy string)

func (*SysDept) SetUpdateTime

func (entity *SysDept) SetUpdateTime(UpdateTime model.LocalTime)

func (*SysDept) String

func (entity *SysDept) String() string

指定生成结果转json字符串

func (*SysDept) TableName

func (entity *SysDept) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

func (*SysDept) ToString

func (entity *SysDept) ToString() string

func (*SysDept) Unmarshal

func (entity *SysDept) Unmarshal(body string) error

func (*SysDept) UnmarshalBy

func (entity *SysDept) UnmarshalBy(body []byte) error

type SysDeptVo

type SysDeptVo struct {

	/*  部门id  */
	DeptId int64 `gorm:"column:dept_id;type:bigint(20);PRIMARY_KEY;comment:'部门id'" json:"deptId,string"`
	/*  父部门id  */
	ParentId int64 `gorm:"column:parent_id;type:bigint(20);comment:'父部门id';default:0" json:"parentId,string"`
	/*  祖级列表  */
	Ancestors string `gorm:"column:ancestors;type:varchar(50);comment:'祖级列表'" json:"ancestors"`
	/*  部门名称  */
	DeptName string `gorm:"column:dept_name;type:varchar(30);comment:'部门名称'" json:"deptName"`
	/*  显示顺序  */
	OrderNum int32 `gorm:"column:order_num;type:int(4);comment:'显示顺序';default:0" json:"orderNum"`
	/*  负责人  */
	Leader string `gorm:"column:leader;type:varchar(20);comment:'负责人'" json:"leader"`
	/*  联系电话  */
	Phone string `gorm:"column:phone;type:varchar(11);comment:'联系电话'" json:"phone"`
	/*  邮箱  */
	Email string `gorm:"column:email;type:varchar(50);comment:'邮箱'" json:"email"`
	/*  部门状态(0正常 1停用)  */
	Status string `gorm:"column:status;type:char(1);comment:'部门状态(0正常 1停用)';default:\'0\'" json:"status"`
	/*  删除标志(0代表存在 2代表删除)  */
	DelFlag string `gorm:"column:del_flag;type:char(1);comment:'删除标志(0代表存在 2代表删除)';default:\'0\'" json:"delFlag"`
	/*  创建者  */
	CreateBy string `gorm:"column:create_by;type:varchar(64);comment:'创建者'" json:"createBy"`
	/*  创建时间  */
	CreateTime model.LocalTime `gorm:"column:create_time;type:datetime;comment:'创建时间'" json:"createTime"`
	/*  更新者  */
	UpdateBy string `gorm:"column:update_by;type:varchar(64);comment:'更新者'" json:"updateBy"`
	/*  更新时间  */
	UpdateTime model.LocalTime `gorm:"column:update_time;type:datetime;comment:'更新时间'" json:"updateTime"`
}

Jump to

Keyboard shortcuts

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