|
// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
|
|
|
|
package etl
|
|
|
|
import (
|
|
"LAPP_ETL/grmi"
|
|
"xorm.io/core"
|
|
)
|
|
|
|
/******************************************************************************
|
|
*
|
|
* @Struct Name : ETCDLock
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : ETCDLock的实体映射
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-05-26 17:44:22
|
|
*
|
|
******************************************************************************/
|
|
type ETCDLock struct {
|
|
TaskId int `xorm:"pk int 'TaskId'" json:"ETCD_Lock-TaskId"`
|
|
Addr string `xorm:"pk nvarchar(255) 'Addr'" json:"ETCD_Lock-Addr"`
|
|
Database string `xorm:"pk nvarchar(255) 'Database'" json:"ETCD_Lock-Database"`
|
|
Table string `xorm:"pk nvarchar(255) 'Table'" json:"ETCD_Lock-Table"`
|
|
LockType string `xorm:"pk nvarchar(255) 'LockType'" json:"ETCD_Lock-LockType"`
|
|
Stage string `xorm:"nvarchar(40) 'Stage' not null" json:"ETCD_Lock-Stage"`
|
|
Source string `xorm:"nvarchar(40) 'Source' not null" json:"ETCD_Lock-Source"`
|
|
CtlParam1 string `xorm:"nvarchar(255) 'CtlParam1'" json:"ETCD_Lock-CtlParam1"`
|
|
CtlParam2 string `xorm:"nvarchar(255) 'CtlParam2'" json:"ETCD_Lock-CtlParam2"`
|
|
CtlParam3 int `xorm:"int 'CtlParam3'" json:"ETCD_Lock-CtlParam3"`
|
|
CtlParam4 int `xorm:"int 'CtlParam4'" json:"ETCD_Lock-CtlParam4"`
|
|
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"ETCD_Lock-LastModify"`
|
|
LastUser string `xorm:"nvarchar(20) 'LastUser' " json:"ETCD_Lock-LastUser"`
|
|
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"ETCD_Lock-CreateTime"`
|
|
}
|
|
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : GetKey
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 获取实体的主键
|
|
*
|
|
* @Return Value : 实体的主键
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-05-26 17:44:22
|
|
*
|
|
******************************************************************************/
|
|
func (self *ETCDLock) GetKey() core.PK {
|
|
return core.PK{self.TaskId, self.Addr, self.Database, self.Table, self.LockType}
|
|
}
|