From b719f445538ee32b5d058f44c325ead7fb8757e3 Mon Sep 17 00:00:00 2001 From: hushaoyi <3003247730@qq.com> Date: Mon, 16 Nov 2020 20:24:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0mkt=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/mkt/client.go | 9 ++++++++- services/mkt/pkg_notice.go | 6 ++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/services/mkt/client.go b/services/mkt/client.go index a4d65ab..53023b7 100644 --- a/services/mkt/client.go +++ b/services/mkt/client.go @@ -17,8 +17,15 @@ type Client struct { sdk.Client } -func (c *Client) CodeAuth(req *PkgNoticeRequest) (response *PkgNoticeResponse, err error) { +// PkgNotice 打包通知 +func (c *Client) PkgNotice(req *PkgNoticeRequest) (response *PkgNoticeResponse, err error) { response = CreatePkgNoticeResponse() err = c.DoAction(req, response) return } + +func NewClientWithAccessKey(accesskey, secrect, source string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(accesskey, secrect, source) + return +} diff --git a/services/mkt/pkg_notice.go b/services/mkt/pkg_notice.go index 505ee47..6f770e0 100644 --- a/services/mkt/pkg_notice.go +++ b/services/mkt/pkg_notice.go @@ -8,8 +8,10 @@ import ( //PkgNoticeRequest 打包通知请求信息 type PkgNoticeRequest struct { *requests.RpcRequest - SiteID int64 `field:"site_id"` // 广告位ID - Status int `field:"status"` // 打包状态(0:失败 1:成功) + SiteID int64 `field:"site_id"` // 广告位ID + Status int `field:"status"` // 打包状态(0:失败 1:成功) + OauthCode string `position:"Body" field:"oauthCode" default:"" ` + Ident string `position:"Body" field:"ident" default:"" ` } //PkgNoticeResponse 打包通知响应信息