From 2869730bddb957303265a1d4cca7915c1f1ebb91 Mon Sep 17 00:00:00 2001 From: Fendy Date: Mon, 3 Aug 2026 12:13:11 +0800 Subject: [PATCH] update app config response struct --- apis/public/get_app_config.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/apis/public/get_app_config.go b/apis/public/get_app_config.go index ce2e889..185b3d2 100644 --- a/apis/public/get_app_config.go +++ b/apis/public/get_app_config.go @@ -2,11 +2,9 @@ package public import "github.com/XingfenD/rainyun_api_go_sdk/constant" -type AppConfigItemResponse struct { - Code int `json:"code"` - Data []AppConfigItem `json:"data"` - Messages []string `json:"messages,omitempty"` - Msg string `json:"msg,omitempty"` +type GetAppConfigResponse struct { + Code int `json:"code"` + Data []AppConfigItem `json:"data"` } type AppConfigItem struct { @@ -26,9 +24,9 @@ type AppConfigValue struct { OriginalIndex int `json:"originalIndex"` } -func (s *Service) GetAppConfig() (*AppConfigItemResponse, error) { +func (s *Service) GetAppConfig() (*GetAppConfigResponse, error) { path := "/app_config" - var resp AppConfigItemResponse + var resp GetAppConfigResponse err := s.client.Do(constant.HTTPMethod_GET, path, nil, &resp) return &resp, err }