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