Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct {
Id int64 `gorm:"column:id;type:BIGINT(20);AUTO_INCREMENT;NOT NULL;comment:id;primary_key;comment:主键ID;"`
Release string `gorm:"type:varchar(36);not null;column:release;comment:release id; index:release; uniqueIndex:type_release_type_key"`
Type string `gorm:"type:varchar(30);not null;column:type;comment:类型;index:type;uniqueIndex:type_release_type_key"`
Target string `gorm:"type:varchar(36);not null;column:target;comment:目标;index:target;uniqueIndex:type_release_type_key"`
Key string `gorm:"type:varchar(36);not null;column:api;comment:api id;uniqueIndex:type_release_type_key"`
Commit string `gorm:"type:varchar(36);not null;column:commit;comment:commit;"`
}
type IReleaseCommitStore ¶
type IReleaseCommitStore interface {
store.IBaseStore[Commit]
}
type IReleaseRuntime ¶
type IReleaseRuntime interface {
store.IBaseStore[Runtime]
}
type IReleaseStore ¶
type IReleaseStore interface {
store.IBaseStore[Release]
}
type Release ¶
type Release struct {
Id int64 `gorm:"column:id;type:BIGINT(20);AUTO_INCREMENT;NOT NULL;comment:id;primary_key;comment:主键ID;"`
UUID string `gorm:"type:varchar(36);not null;column:uuid;uniqueIndex:uuid;comment:UUID;"`
Name string `gorm:"type:varchar(100);not null;column:name;comment:name"`
Service string `gorm:"type:varchar(50);not null;column:service;comment:服务ID;index:service"`
Remark string `gorm:"size:255;not null;column:remark;comment:备注"`
Creator string `gorm:"size:36;not null;column:creator;comment:创建人;index:creator"` // 创建人
CreateAt time.Time `gorm:"type:timestamp;NOT NULL;DEFAULT:CURRENT_TIMESTAMP;column:create_at;comment:创建时间"`
}
type Runtime ¶
type Runtime struct {
Id int64 `gorm:"column:id;type:BIGINT(20);AUTO_INCREMENT;NOT NULL;comment:id;primary_key;comment:主键ID;"`
Service string `gorm:"type:varchar(50);not null;column:service;comment:服务ID;index:service"`
Release string `gorm:"type:varchar(36);not null;column:release;comment:release id;"`
UpdateTime time.Time `gorm:"type:timestamp;NOT NULL;DEFAULT:CURRENT_TIMESTAMP;column:update_time;comment:更新时间"`
Operator string `gorm:"size:36;not null;column:operator;comment:操作人;index:operator"`
}
Click to show internal directories.
Click to hide internal directories.