2020-11-16 11:52:53 +08:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2020-11-16 20:24:57 +08:00
|
|
|
// PkgNotice 打包通知
|
|
|
|
func (c *Client) PkgNotice(req *PkgNoticeRequest) (response *PkgNoticeResponse, err error) {
|
2020-11-16 11:52:53 +08:00
|
|
|
response = CreatePkgNoticeResponse()
|
|
|
|
err = c.DoAction(req, response)
|
|
|
|
return
|
|
|
|
}
|
2020-11-16 20:24:57 +08:00
|
|
|
|
|
|
|
func NewClientWithAccessKey(accesskey, secrect, source string) (client *Client, err error) {
|
|
|
|
client = &Client{}
|
|
|
|
err = client.InitWithAccessKey(accesskey, secrect, source)
|
|
|
|
return
|
|
|
|
}
|