by Robin at 20240429
This commit is contained in:
parent
86bc5933e4
commit
bd0fb55e8e
|
@ -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"`
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue