Skip to content

Commit c8e5b75

Browse files
committed
update
1 parent 8365f77 commit c8e5b75

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

module/service/iml.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,12 @@ func (i *imlServiceModule) Delete(ctx context.Context, id string) error {
742742
if err != nil {
743743
return err
744744
}
745+
err = client.Project().Offline(ctx, &gateway.ProjectRelease{
746+
Id: id,
747+
})
748+
if err != nil {
749+
return err
750+
}
745751
err = client.Subscribe().Offline(ctx, &gateway.SubscribeRelease{
746752
Service: id,
747753
Application: "apipark-global",

stores/service/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (t *Tag) TableName() string {
7777
type Doc struct {
7878
Id int64 `gorm:"column:id;type:BIGINT(20);AUTO_INCREMENT;NOT NULL;comment:id;primary_key;comment:主键ID;"`
7979
Sid string `gorm:"size:36;not null;column:sid;comment:服务id;uniqueIndex:unique_sid;"`
80-
Doc string `gorm:"type:text;column:content;comment:内容"`
80+
Doc string `gorm:"type:longtext;column:content;comment:内容"`
8181
CreateAt time.Time `gorm:"type:timestamp;NOT NULL;DEFAULT:CURRENT_TIMESTAMP;column:create_at;comment:创建时间"`
8282
UpdateAt time.Time `gorm:"type:timestamp;NOT NULL;DEFAULT:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;column:update_at;comment:修改时间" json:"update_at"`
8383
Creator string `gorm:"type:varchar(36);not null;column:creator;comment:创建者"`

0 commit comments

Comments
 (0)