32 lines
610 B
Go
32 lines
610 B
Go
|
package center_api
|
||
|
|
||
|
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: "center-api",
|
||
|
}
|
||
|
|
||
|
type Client struct {
|
||
|
sdk.Client
|
||
|
}
|
||
|
|
||
|
func NewClient() (client *Client, err error) {
|
||
|
client = new(Client)
|
||
|
err = client.Init()
|
||
|
return
|
||
|
}
|
||
|
|
||
|
// PackagingTaskCallback 打包任务回调
|
||
|
func (c *Client) PackagingTaskCallback(req *PackagingTaskCallbackReq) (resp *PackagingTaskCallbackResp, err error) {
|
||
|
resp = CreatePackagingTaskCallbackResp()
|
||
|
err = c.DoAction(req, resp)
|
||
|
return
|
||
|
}
|