增加mkt打包通知接口
This commit is contained in:
parent
f0ae70298d
commit
70bf6b572a
24
services/mkt/client.go
Normal file
24
services/mkt/client.go
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
package mkt
|
||||||
|
|
||||||
|
import (
|
||||||
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk"
|
||||||
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
VERSION = "2020-11-16"
|
||||||
|
)
|
||||||
|
|
||||||
|
var HOST = requests.Host{
|
||||||
|
Default: "mkt",
|
||||||
|
}
|
||||||
|
|
||||||
|
type Client struct {
|
||||||
|
sdk.Client
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) CodeAuth(req *PkgNoticeRequest) (response *PkgNoticeResponse, err error) {
|
||||||
|
response = CreatePkgNoticeResponse()
|
||||||
|
err = c.DoAction(req, response)
|
||||||
|
return
|
||||||
|
}
|
36
services/mkt/pkg_notice.go
Normal file
36
services/mkt/pkg_notice.go
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
package mkt
|
||||||
|
|
||||||
|
import (
|
||||||
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
|
||||||
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses"
|
||||||
|
)
|
||||||
|
|
||||||
|
//PkgNoticeRequest 打包通知请求信息
|
||||||
|
type PkgNoticeRequest struct {
|
||||||
|
*requests.RpcRequest
|
||||||
|
SiteID int64 `field:"site_id"` // 广告位ID
|
||||||
|
Status int `field:"status"` // 打包状态(0:失败 1:成功)
|
||||||
|
}
|
||||||
|
|
||||||
|
//PkgNoticeResponse 打包通知响应信息
|
||||||
|
type PkgNoticeResponse struct {
|
||||||
|
*responses.BaseResponse
|
||||||
|
}
|
||||||
|
|
||||||
|
//CreatePkgNoticeRequest 创建通知接口
|
||||||
|
func CreatePkgNoticeRequest() (req *PkgNoticeRequest) {
|
||||||
|
req = &PkgNoticeRequest{
|
||||||
|
RpcRequest: &requests.RpcRequest{},
|
||||||
|
}
|
||||||
|
req.InitWithApiInfo(HOST, VERSION, "/api/game/pkgnotice")
|
||||||
|
req.Method = requests.POST
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
//CreatePkgNoticeResponse 创建通知响应
|
||||||
|
func CreatePkgNoticeResponse() (response *PkgNoticeResponse) {
|
||||||
|
response = &PkgNoticeResponse{
|
||||||
|
BaseResponse: &responses.BaseResponse{},
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user