From 4f2082800553ff4c7d6d277d0b5d87c50251c8d8 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Mon, 29 Apr 2024 22:36:16 +0800 Subject: [PATCH 1/2] by Robin at 20240429 --- apollostruct/platform.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"` } From 07aff915c0192caa7eab1a491c846077170f8df7 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Mon, 29 Apr 2024 22:36:45 +0800 Subject: [PATCH 2/2] b --- app/mix/service/configservice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }