feat: change appNotificationAccount to appManagerAccount && fix: enable config center add env check && fix: error return (#3038)

* feat: change appNotificationAccount to appManagerAccount && fix: enable config center add env check && fix: error return

* fix: err
This commit is contained in:
icey-yu
2025-01-06 22:43:21 +08:00
committed by GitHub
parent 07c255ade7
commit 1e8a106320
6 changed files with 37 additions and 24 deletions
+4
View File
@@ -259,6 +259,10 @@ func (cm *ConfigManager) restart(c *gin.Context) {
}
func (cm *ConfigManager) SetEnableConfigManager(c *gin.Context) {
if cm.config.Discovery.Enable != config.ETCD {
apiresp.GinError(c, errs.New("only etcd support config manager").Wrap())
return
}
var req apistruct.SetEnableConfigManagerReq
if err := c.BindJSON(&req); err != nil {
apiresp.GinError(c, errs.ErrArgs.WithDetail(err.Error()).Wrap())