diff --git a/module/service/iml.go b/module/service/iml.go index 9ba88250..8397c075 100644 --- a/module/service/iml.go +++ b/module/service/iml.go @@ -742,6 +742,12 @@ func (i *imlServiceModule) Delete(ctx context.Context, id string) error { if err != nil { return err } + err = client.Project().Offline(ctx, &gateway.ProjectRelease{ + Id: id, + }) + if err != nil { + return err + } err = client.Subscribe().Offline(ctx, &gateway.SubscribeRelease{ Service: id, Application: "apipark-global", diff --git a/stores/service/model.go b/stores/service/model.go index 8ed2f0fd..45297d91 100644 --- a/stores/service/model.go +++ b/stores/service/model.go @@ -77,7 +77,7 @@ func (t *Tag) TableName() string { type Doc struct { Id int64 `gorm:"column:id;type:BIGINT(20);AUTO_INCREMENT;NOT NULL;comment:id;primary_key;comment:主键ID;"` Sid string `gorm:"size:36;not null;column:sid;comment:服务id;uniqueIndex:unique_sid;"` - Doc string `gorm:"type:text;column:content;comment:内容"` + Doc string `gorm:"type:longtext;column:content;comment:内容"` CreateAt time.Time `gorm:"type:timestamp;NOT NULL;DEFAULT:CURRENT_TIMESTAMP;column:create_at;comment:创建时间"` UpdateAt time.Time `gorm:"type:timestamp;NOT NULL;DEFAULT:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;column:update_at;comment:修改时间" json:"update_at"` Creator string `gorm:"type:varchar(36);not null;column:creator;comment:创建者"`