publish

package
v1.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diff

type Diff struct {
	Id   int64  `gorm:"column:id;type:BIGINT(20);NOT NULL;comment:id;primary_key;comment:主键ID;"`
	UUID string `gorm:"type:varchar(36);not null;column:uuid;comment:UUID;index:uuid"`
	Data []byte `gorm:"type:text;not null;column:data;comment:版本差异,包含api和upstream"`
}

func (*Diff) IdValue

func (t *Diff) IdValue() int64

func (*Diff) TableName

func (t *Diff) TableName() string

type IDiffStore

type IDiffStore interface {
	store.IBaseStore[Diff]
}

type IPublishLatestStore

type IPublishLatestStore interface {
	store.IBaseStore[Latest]
}

type IPublishStatusStore

type IPublishStatusStore interface {
	store.IBaseStore[Status]
}

type IPublishStore

type IPublishStore interface {
	store.IBaseStore[Publish]
}

type Latest

type Latest struct {
	Id      int64  `gorm:"column:id;type:BIGINT(20);NOT NULL;comment:id;primary_key;comment:主键ID;"`
	Release string `gorm:"type:varchar(36);not null;column:release;comment:release id;uniqueIndex:release"`
	Latest  string `gorm:"type:varchar(36);not null;column:latest;comment:latest id;"`
}

func (*Latest) IdValue

func (t *Latest) IdValue() int64

func (*Latest) TableName

func (t *Latest) TableName() string

type Publish

type Publish 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;"`
	Service     string    `gorm:"type:varchar(50);not null;column:service;comment:服务名;index:service"`
	Release     string    `gorm:"type:varchar(36);not null;column:release;comment:release id;"`
	Previous    string    `gorm:"type:varchar(50);not null;column:previous;comment:上一个版本release id;index:previous"`
	Version     string    `gorm:"type:varchar(50);not null;column:version;comment:版本号(冗余);index:version;"`
	ApplyTime   time.Time `gorm:"type:timestamp;NOT NULL;DEFAULT:CURRENT_TIMESTAMP;column:apply_time;comment:申请时间"`
	Applicant   string    `gorm:"size:36;not null;column:applicant;comment:申请人;index:applicant"`
	Remark      string    `gorm:"type:text;not null;column:remark;comment:备注"`
	ApproveTime time.Time `gorm:"type:timestamp;DEFAULT:CURRENT_TIMESTAMP;column:approve_time;comment:审批时间"`
	Approver    string    `gorm:"size:36;not null;column:approver;comment:审批人;index:approver"`
	Comments    string    `gorm:"type:text;not null;column:comments;comment:审批意见"`
	Status      int       `` /* 203-byte string literal not displayed */
}

func (*Publish) IdValue

func (t *Publish) IdValue() int64

func (*Publish) TableName

func (t *Publish) TableName() string

type Status

type Status struct {
	Id       int64     `gorm:"column:id;type:BIGINT(20);NOT NULL;comment:id;primary_key;comment:主键ID;"`
	Publish  string    `gorm:"type:varchar(36);not null;column:publish;comment:publish id;uniqueIndex:unique"`
	Cluster  string    `gorm:"type:varchar(36);not null;column:cluster;comment:cluster;uniqueIndex:unique"`
	Status   int       `` /* 203-byte string literal not displayed */
	Error    string    `gorm:"type:text;not null;column:error;comment:错误信息"`
	UpdateAt time.Time `gorm:"type:timestamp;NOT NULL;DEFAULT:CURRENT_TIMESTAMP;column:update_at;comment:更新时间"`
}

func (*Status) IdValue

func (t *Status) IdValue() int64

func (*Status) TableName

func (t *Status) TableName() string

Jump to

Keyboard shortcuts

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