From 6ad173703c488f9b6acbb66177c0120817115f96 Mon Sep 17 00:00:00 2001 From: Syd Xu Date: Tue, 2 Apr 2024 15:21:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(tools):=20=E8=8E=B7=E5=8F=96=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E7=9A=84=E6=8A=96=E9=9F=B3=E5=8F=B7=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=80=BC=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- marketing-api/OCEANENGINE.md | 2 +- marketing-api/api/tools/ies_account_search.go | 2 +- marketing-api/model/tools/ies_account_search.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/marketing-api/OCEANENGINE.md b/marketing-api/OCEANENGINE.md index 878de64e..ad7a754c 100644 --- a/marketing-api/OCEANENGINE.md +++ b/marketing-api/OCEANENGINE.md @@ -352,7 +352,7 @@ - 获取快投推荐出价系数 [ tools.SearchBidRatioGet(clt *core.SDKClient, accessToken string, req *tools.SearchBidRatioGetRequest) (float64, error) ] - 查询白名单能力 [ GrayGet(clt *core.SDKClient, accessToken string, req *tools.GrayGetRequest) ([]tools.GrayItem, error) ] - 查询建议出价(巨量广告升级版) [ tools.v3.BidSuggest(clt *core.SDKClient, accessToken string, req *v3.BidSuggestRequest) (*tools.BidSuggest, error) ] - - 获取绑定的抖音号 [ IesAccountSearch(clt *core.SDKClient, accessToken string, req *tools.IesAccountSearchRequest) (*tools.IesAccount, error) ] + - 获取绑定的抖音号 [ IesAccountSearch(clt *core.SDKClient, accessToken string, req *tools.IesAccountSearchRequest) ([]tools.IesAccount, error) ] - 应用管理 (tools/appmanagement) - 查询游戏信息 [ BookingGet(clt *core.SDKClient, accessToken string, req *appmanagement.AppListRequest) (*appmanagement.AppListResponseData, error) ] - 查询应用信息 [ AppGet(clt *core.SDKClient, accessToken string, req *appmanagement.AppListRequest) (*appmanagement.AppListResponseData, error) ] diff --git a/marketing-api/api/tools/ies_account_search.go b/marketing-api/api/tools/ies_account_search.go index 7df01bbb..f6f0d540 100644 --- a/marketing-api/api/tools/ies_account_search.go +++ b/marketing-api/api/tools/ies_account_search.go @@ -7,7 +7,7 @@ import ( // IesAccountSearch 获取绑定的抖音号 // 此接口可以帮助查询广告主账户当前绑定的抖音号信息 -func IesAccountSearch(clt *core.SDKClient, accessToken string, req *tools.IesAccountSearchRequest) (*tools.IesAccount, error) { +func IesAccountSearch(clt *core.SDKClient, accessToken string, req *tools.IesAccountSearchRequest) ([]tools.IesAccount, error) { var resp tools.IesAccountSearchResponse if err := clt.Get("2/tools/ies_account_search/", req, &resp, accessToken); err != nil { return nil, err diff --git a/marketing-api/model/tools/ies_account_search.go b/marketing-api/model/tools/ies_account_search.go index 2dbd705f..d03dec50 100644 --- a/marketing-api/model/tools/ies_account_search.go +++ b/marketing-api/model/tools/ies_account_search.go @@ -26,7 +26,7 @@ func (r IesAccountSearchRequest) Encode() string { // IesAccountSearchResponse 获取绑定的抖音号 API Response type IesAccountSearchResponse struct { model.BaseResponse - Data *IesAccount `json:"data,omitempty"` + Data []IesAccount `json:"data,omitempty"` } // IesAccount 绑定的抖音号