mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
Merge branch 'feature/data-mask' into 'main'
update service publish See merge request apipark/APIPark!118
This commit is contained in:
@@ -25,8 +25,8 @@ type ApiDiff struct {
|
||||
Protocol []string `json:"protocol,omitempty"`
|
||||
Disable bool `json:"disable,omitempty"`
|
||||
Path string `json:"path,omitempty"`
|
||||
Change ChangeType `json:"change,omitempty"`
|
||||
Status Status `json:"status,omitempty"`
|
||||
Change ChangeType `json:"change"`
|
||||
Status Status `json:"status"`
|
||||
}
|
||||
type UpstreamConfig struct {
|
||||
Addr []string `json:"addr"`
|
||||
@@ -35,16 +35,16 @@ type UpstreamDiff struct {
|
||||
Upstream string `json:"upstream,omitempty" `
|
||||
//Cluster string `json:"partition,omitempty"`
|
||||
Data *upstream.Config `json:"data,omitempty"`
|
||||
Change ChangeType `json:"change,omitempty"`
|
||||
Status StatusType `json:"status,omitempty"`
|
||||
Change ChangeType `json:"change"`
|
||||
Status StatusType `json:"status"`
|
||||
}
|
||||
|
||||
type StrategyDiff struct {
|
||||
Strategy string `json:"strategy,omitempty"`
|
||||
Name string `json:"name"`
|
||||
Priority int `json:"priority"`
|
||||
Change ChangeType `json:"change,omitempty"`
|
||||
Status StatusType `json:"status,omitempty"`
|
||||
Change ChangeType `json:"change"`
|
||||
Status StatusType `json:"status"`
|
||||
}
|
||||
|
||||
type Diff struct {
|
||||
|
||||
@@ -6,7 +6,7 @@ type Commit[H any] struct {
|
||||
Id int64 `gorm:"column:id;type:BIGINT(20);AUTO_INCREMENT;NOT NULL;comment:id;primary_key;comment:主键ID;"`
|
||||
UUID string `gorm:"size:36;not null;column:uuid;comment:uuid;uniqueIndex:uuid;"`
|
||||
Target string `gorm:"column:target;type:varchar(36);NOT NULL;comment:目标id;index:target;"`
|
||||
Key string `gorm:"size:36;not null;column:key;comment:类型;index:key;"`
|
||||
Key string `gorm:"size:50;not null;column:key;comment:类型;index:key;"`
|
||||
Data *H `gorm:"type:text;not null;column:data;comment:数据;charset=utf8mb4;serializer:json"`
|
||||
CreateAt time.Time `gorm:"type:timestamp;NOT NULL;DEFAULT:CURRENT_TIMESTAMP;column:create_at;comment:创建时间"`
|
||||
Operator string `gorm:"size:36;not null;column:operator;comment:操作人;index:operator;"`
|
||||
@@ -14,6 +14,6 @@ type Commit[H any] struct {
|
||||
type Latest struct {
|
||||
Id int64 `gorm:"column:id;type:BIGINT(20);AUTO_INCREMENT;NOT NULL;comment:id;primary_key;comment:主键ID;"`
|
||||
Target string `gorm:"column:target;type:varchar(36);NOT NULL;comment:目标id;index:target;uniqueIndex:target_type;"`
|
||||
Key string `gorm:"size:36;not null;column:key;comment:类型;index:key;uniqueIndex:target_type;"`
|
||||
Key string `gorm:"size:50;not null;column:key;comment:类型;index:key;uniqueIndex:target_type;"`
|
||||
Latest string `gorm:"size:36;not null;column:latest;comment:最新版本 id"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user