diff --git a/apollostruct/platform.go b/apollostruct/platform.go index a7df440e..649fffd3 100644 --- a/apollostruct/platform.go +++ b/apollostruct/platform.go @@ -3,6 +3,7 @@ package apollostruct import "service/dbstruct" type PlatformCfg struct { - Name string `json:"name"` - Icon *dbstruct.MediaComponent `json:"icon"` + Name string `json:"name"` + Icon *dbstruct.MediaComponent `json:"icon"` + DelFlag int64 `json:"del_flag"` } diff --git a/app/mix/service/configservice.go b/app/mix/service/configservice.go index 8b20ca92..16c83ccd 100644 --- a/app/mix/service/configservice.go +++ b/app/mix/service/configservice.go @@ -67,7 +67,9 @@ func (s *ConfigService) OpGetPlatformList(ctx *gin.Context) (platformMap map[int logger.Error("Apollo read failed : %v", err) return nil, errcode.ErrCodeApolloReadFail } - platformMap[int64(i)] = cfg + if cfg.DelFlag == 0 { + platformMap[int64(i)] = cfg + } } return