This commit is contained in:
Liujian
2025-04-16 14:12:20 +08:00
parent 8365f77c67
commit c8e5b7541d
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -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",
+1 -1
View File
@@ -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:创建者"`