Procházet zdrojové kódy

LUBANCLOUD SDK Auto Released By benxiang.hhq,Version:1.35.0

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
yixiong.jxy před 7 roky
rodič
revize
2ba3e9f884

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-11-02 Version: 1.35.0
+1, first version
+
 2018-10-31 Version: 1.34.13
 1, update
 

+ 104 - 0
services/lubancloud/buy_origin_pictures.go

@@ -0,0 +1,104 @@
+package lubancloud
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// BuyOriginPictures invokes the lubancloud.BuyOriginPictures API synchronously
+// api document: https://help.aliyun.com/api/lubancloud/buyoriginpictures.html
+func (client *Client) BuyOriginPictures(request *BuyOriginPicturesRequest) (response *BuyOriginPicturesResponse, err error) {
+	response = CreateBuyOriginPicturesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// BuyOriginPicturesWithChan invokes the lubancloud.BuyOriginPictures API asynchronously
+// api document: https://help.aliyun.com/api/lubancloud/buyoriginpictures.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) BuyOriginPicturesWithChan(request *BuyOriginPicturesRequest) (<-chan *BuyOriginPicturesResponse, <-chan error) {
+	responseChan := make(chan *BuyOriginPicturesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.BuyOriginPictures(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// BuyOriginPicturesWithCallback invokes the lubancloud.BuyOriginPictures API asynchronously
+// api document: https://help.aliyun.com/api/lubancloud/buyoriginpictures.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) BuyOriginPicturesWithCallback(request *BuyOriginPicturesRequest, callback func(response *BuyOriginPicturesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *BuyOriginPicturesResponse
+		var err error
+		defer close(result)
+		response, err = client.BuyOriginPictures(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// BuyOriginPicturesRequest is the request struct for api BuyOriginPictures
+type BuyOriginPicturesRequest struct {
+	*requests.RpcRequest
+	PictureId *[]string `position:"Query" name:"PictureId"  type:"Repeated"`
+}
+
+// BuyOriginPicturesResponse is the response struct for api BuyOriginPictures
+type BuyOriginPicturesResponse struct {
+	*responses.BaseResponse
+	RequestId string    `json:"RequestId" xml:"RequestId"`
+	Pictures  []Picture `json:"Pictures" xml:"Pictures"`
+}
+
+// CreateBuyOriginPicturesRequest creates a request to invoke BuyOriginPictures API
+func CreateBuyOriginPicturesRequest() (request *BuyOriginPicturesRequest) {
+	request = &BuyOriginPicturesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("lubancloud", "2018-05-09", "BuyOriginPictures", "luban", "openAPI")
+	return
+}
+
+// CreateBuyOriginPicturesResponse creates a response to parse from BuyOriginPictures response
+func CreateBuyOriginPicturesResponse() (response *BuyOriginPicturesResponse) {
+	response = &BuyOriginPicturesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 81 - 0
services/lubancloud/client.go

@@ -0,0 +1,81 @@
+package lubancloud
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
+)
+
+// Client is the sdk client struct, each func corresponds to an OpenAPI
+type Client struct {
+	sdk.Client
+}
+
+// NewClient creates a sdk client with environment variables
+func NewClient() (client *Client, err error) {
+	client = &Client{}
+	err = client.Init()
+	return
+}
+
+// NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential
+// this is the common api to create a sdk client
+func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithOptions(regionId, config, credential)
+	return
+}
+
+// NewClientWithAccessKey is a shortcut to create sdk client with accesskey
+// usage: https://help.aliyun.com/document_detail/66217.html
+func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
+	return
+}
+
+// NewClientWithStsToken is a shortcut to create sdk client with sts token
+// usage: https://help.aliyun.com/document_detail/66222.html
+func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
+	return
+}
+
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn
+// usage: https://help.aliyun.com/document_detail/66222.html
+func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
+	return
+}
+
+// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role
+// usage: https://help.aliyun.com/document_detail/66223.html
+func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithEcsRamRole(regionId, roleName)
+	return
+}
+
+// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair
+// attention: rsa key pair auth is only Japan regions available
+func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
+	return
+}

+ 103 - 0
services/lubancloud/get_styles.go

@@ -0,0 +1,103 @@
+package lubancloud
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// GetStyles invokes the lubancloud.GetStyles API synchronously
+// api document: https://help.aliyun.com/api/lubancloud/getstyles.html
+func (client *Client) GetStyles(request *GetStylesRequest) (response *GetStylesResponse, err error) {
+	response = CreateGetStylesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetStylesWithChan invokes the lubancloud.GetStyles API asynchronously
+// api document: https://help.aliyun.com/api/lubancloud/getstyles.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetStylesWithChan(request *GetStylesRequest) (<-chan *GetStylesResponse, <-chan error) {
+	responseChan := make(chan *GetStylesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetStyles(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetStylesWithCallback invokes the lubancloud.GetStyles API asynchronously
+// api document: https://help.aliyun.com/api/lubancloud/getstyles.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetStylesWithCallback(request *GetStylesRequest, callback func(response *GetStylesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetStylesResponse
+		var err error
+		defer close(result)
+		response, err = client.GetStyles(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetStylesRequest is the request struct for api GetStyles
+type GetStylesRequest struct {
+	*requests.RpcRequest
+}
+
+// GetStylesResponse is the response struct for api GetStyles
+type GetStylesResponse struct {
+	*responses.BaseResponse
+	RequestId string  `json:"RequestId" xml:"RequestId"`
+	Styles    []Style `json:"Styles" xml:"Styles"`
+}
+
+// CreateGetStylesRequest creates a request to invoke GetStyles API
+func CreateGetStylesRequest() (request *GetStylesRequest) {
+	request = &GetStylesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("lubancloud", "2018-05-09", "GetStyles", "luban", "openAPI")
+	return
+}
+
+// CreateGetStylesResponse creates a response to parse from GetStyles response
+func CreateGetStylesResponse() (response *GetStylesResponse) {
+	response = &GetStylesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/lubancloud/query_cutout_task_result.go

@@ -0,0 +1,109 @@
+package lubancloud
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// QueryCutoutTaskResult invokes the lubancloud.QueryCutoutTaskResult API synchronously
+// api document: https://help.aliyun.com/api/lubancloud/querycutouttaskresult.html
+func (client *Client) QueryCutoutTaskResult(request *QueryCutoutTaskResultRequest) (response *QueryCutoutTaskResultResponse, err error) {
+	response = CreateQueryCutoutTaskResultResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryCutoutTaskResultWithChan invokes the lubancloud.QueryCutoutTaskResult API asynchronously
+// api document: https://help.aliyun.com/api/lubancloud/querycutouttaskresult.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryCutoutTaskResultWithChan(request *QueryCutoutTaskResultRequest) (<-chan *QueryCutoutTaskResultResponse, <-chan error) {
+	responseChan := make(chan *QueryCutoutTaskResultResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryCutoutTaskResult(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryCutoutTaskResultWithCallback invokes the lubancloud.QueryCutoutTaskResult API asynchronously
+// api document: https://help.aliyun.com/api/lubancloud/querycutouttaskresult.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryCutoutTaskResultWithCallback(request *QueryCutoutTaskResultRequest, callback func(response *QueryCutoutTaskResultResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryCutoutTaskResultResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryCutoutTaskResult(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryCutoutTaskResultRequest is the request struct for api QueryCutoutTaskResult
+type QueryCutoutTaskResultRequest struct {
+	*requests.RpcRequest
+	TaskId requests.Integer `position:"Query" name:"TaskId"`
+}
+
+// QueryCutoutTaskResultResponse is the response struct for api QueryCutoutTaskResult
+type QueryCutoutTaskResultResponse struct {
+	*responses.BaseResponse
+	RequestId   string    `json:"RequestId" xml:"RequestId"`
+	TotalSize   int       `json:"TotalSize" xml:"TotalSize"`
+	WaitSize    int       `json:"WaitSize" xml:"WaitSize"`
+	SuccessSize int       `json:"SuccessSize" xml:"SuccessSize"`
+	FailSize    int       `json:"FailSize" xml:"FailSize"`
+	Status      int       `json:"Status" xml:"Status"`
+	Pictures    []Picture `json:"Pictures" xml:"Pictures"`
+}
+
+// CreateQueryCutoutTaskResultRequest creates a request to invoke QueryCutoutTaskResult API
+func CreateQueryCutoutTaskResultRequest() (request *QueryCutoutTaskResultRequest) {
+	request = &QueryCutoutTaskResultRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("lubancloud", "2018-05-09", "QueryCutoutTaskResult", "luban", "openAPI")
+	return
+}
+
+// CreateQueryCutoutTaskResultResponse creates a response to parse from QueryCutoutTaskResult response
+func CreateQueryCutoutTaskResultResponse() (response *QueryCutoutTaskResultResponse) {
+	response = &QueryCutoutTaskResultResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/lubancloud/query_generate_task_result.go

@@ -0,0 +1,109 @@
+package lubancloud
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// QueryGenerateTaskResult invokes the lubancloud.QueryGenerateTaskResult API synchronously
+// api document: https://help.aliyun.com/api/lubancloud/querygeneratetaskresult.html
+func (client *Client) QueryGenerateTaskResult(request *QueryGenerateTaskResultRequest) (response *QueryGenerateTaskResultResponse, err error) {
+	response = CreateQueryGenerateTaskResultResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryGenerateTaskResultWithChan invokes the lubancloud.QueryGenerateTaskResult API asynchronously
+// api document: https://help.aliyun.com/api/lubancloud/querygeneratetaskresult.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryGenerateTaskResultWithChan(request *QueryGenerateTaskResultRequest) (<-chan *QueryGenerateTaskResultResponse, <-chan error) {
+	responseChan := make(chan *QueryGenerateTaskResultResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryGenerateTaskResult(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryGenerateTaskResultWithCallback invokes the lubancloud.QueryGenerateTaskResult API asynchronously
+// api document: https://help.aliyun.com/api/lubancloud/querygeneratetaskresult.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryGenerateTaskResultWithCallback(request *QueryGenerateTaskResultRequest, callback func(response *QueryGenerateTaskResultResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryGenerateTaskResultResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryGenerateTaskResult(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryGenerateTaskResultRequest is the request struct for api QueryGenerateTaskResult
+type QueryGenerateTaskResultRequest struct {
+	*requests.RpcRequest
+	TaskId requests.Integer `position:"Query" name:"TaskId"`
+}
+
+// QueryGenerateTaskResultResponse is the response struct for api QueryGenerateTaskResult
+type QueryGenerateTaskResultResponse struct {
+	*responses.BaseResponse
+	RequestId   string    `json:"RequestId" xml:"RequestId"`
+	TotalSize   int       `json:"TotalSize" xml:"TotalSize"`
+	WaitSize    int       `json:"WaitSize" xml:"WaitSize"`
+	SuccessSize int       `json:"SuccessSize" xml:"SuccessSize"`
+	FailSize    int       `json:"FailSize" xml:"FailSize"`
+	Status      int       `json:"Status" xml:"Status"`
+	Pictures    []Picture `json:"Pictures" xml:"Pictures"`
+}
+
+// CreateQueryGenerateTaskResultRequest creates a request to invoke QueryGenerateTaskResult API
+func CreateQueryGenerateTaskResultRequest() (request *QueryGenerateTaskResultRequest) {
+	request = &QueryGenerateTaskResultRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("lubancloud", "2018-05-09", "QueryGenerateTaskResult", "luban", "openAPI")
+	return
+}
+
+// CreateQueryGenerateTaskResultResponse creates a response to parse from QueryGenerateTaskResult response
+func CreateQueryGenerateTaskResultResponse() (response *QueryGenerateTaskResultResponse) {
+	response = &QueryGenerateTaskResultResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 31 - 0
services/lubancloud/struct_picture.go

@@ -0,0 +1,31 @@
+package lubancloud
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Picture is a nested struct in lubancloud response
+type Picture struct {
+	Name               string `json:"Name" xml:"Name"`
+	Status             int    `json:"Status" xml:"Status"`
+	OriginalPictureUrl string `json:"OriginalPictureUrl" xml:"OriginalPictureUrl"`
+	OriginUrl          string `json:"OriginUrl" xml:"OriginUrl"`
+	CutoutUrl          string `json:"CutoutUrl" xml:"CutoutUrl"`
+	ErrorMessage       string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Id                 int    `json:"Id" xml:"Id"`
+	PreviewUrl         string `json:"PreviewUrl" xml:"PreviewUrl"`
+	Width              int    `json:"Width" xml:"Width"`
+	Height             int    `json:"Height" xml:"Height"`
+	ErrorCode          string `json:"ErrorCode" xml:"ErrorCode"`
+}

+ 21 - 0
services/lubancloud/struct_pictures_in_buy_origin_pictures.go

@@ -0,0 +1,21 @@
+package lubancloud
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// PicturesInBuyOriginPictures is a nested struct in lubancloud response
+type PicturesInBuyOriginPictures struct {
+	Picture []Picture `json:"Picture" xml:"Picture"`
+}

+ 21 - 0
services/lubancloud/struct_pictures_in_query_cutout_task_result.go

@@ -0,0 +1,21 @@
+package lubancloud
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// PicturesInQueryCutoutTaskResult is a nested struct in lubancloud response
+type PicturesInQueryCutoutTaskResult struct {
+	Picture []Picture `json:"Picture" xml:"Picture"`
+}

+ 21 - 0
services/lubancloud/struct_pictures_in_query_generate_task_result.go

@@ -0,0 +1,21 @@
+package lubancloud
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// PicturesInQueryGenerateTaskResult is a nested struct in lubancloud response
+type PicturesInQueryGenerateTaskResult struct {
+	Picture []Picture `json:"Picture" xml:"Picture"`
+}

+ 25 - 0
services/lubancloud/struct_style.go

@@ -0,0 +1,25 @@
+package lubancloud
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Style is a nested struct in lubancloud response
+type Style struct {
+	Id         int        `json:"Id" xml:"Id"`
+	Name       string     `json:"Name" xml:"Name"`
+	ParentId   int        `json:"ParentId" xml:"ParentId"`
+	PreviewUrl string     `json:"PreviewUrl" xml:"PreviewUrl"`
+	SubStyles  []SubStyle `json:"SubStyles" xml:"SubStyles"`
+}

+ 21 - 0
services/lubancloud/struct_styles.go

@@ -0,0 +1,21 @@
+package lubancloud
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Styles is a nested struct in lubancloud response
+type Styles struct {
+	Style []Style `json:"Style" xml:"Style"`
+}

+ 24 - 0
services/lubancloud/struct_sub_style.go

@@ -0,0 +1,24 @@
+package lubancloud
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// SubStyle is a nested struct in lubancloud response
+type SubStyle struct {
+	Id         int    `json:"Id" xml:"Id"`
+	Name       string `json:"Name" xml:"Name"`
+	ParentId   int    `json:"ParentId" xml:"ParentId"`
+	PreviewUrl string `json:"PreviewUrl" xml:"PreviewUrl"`
+}

+ 21 - 0
services/lubancloud/struct_sub_styles.go

@@ -0,0 +1,21 @@
+package lubancloud
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// SubStyles is a nested struct in lubancloud response
+type SubStyles struct {
+	SubStyle []SubStyle `json:"SubStyle" xml:"SubStyle"`
+}

+ 104 - 0
services/lubancloud/submit_cutout_task.go

@@ -0,0 +1,104 @@
+package lubancloud
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// SubmitCutoutTask invokes the lubancloud.SubmitCutoutTask API synchronously
+// api document: https://help.aliyun.com/api/lubancloud/submitcutouttask.html
+func (client *Client) SubmitCutoutTask(request *SubmitCutoutTaskRequest) (response *SubmitCutoutTaskResponse, err error) {
+	response = CreateSubmitCutoutTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// SubmitCutoutTaskWithChan invokes the lubancloud.SubmitCutoutTask API asynchronously
+// api document: https://help.aliyun.com/api/lubancloud/submitcutouttask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SubmitCutoutTaskWithChan(request *SubmitCutoutTaskRequest) (<-chan *SubmitCutoutTaskResponse, <-chan error) {
+	responseChan := make(chan *SubmitCutoutTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.SubmitCutoutTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// SubmitCutoutTaskWithCallback invokes the lubancloud.SubmitCutoutTask API asynchronously
+// api document: https://help.aliyun.com/api/lubancloud/submitcutouttask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SubmitCutoutTaskWithCallback(request *SubmitCutoutTaskRequest, callback func(response *SubmitCutoutTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *SubmitCutoutTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.SubmitCutoutTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// SubmitCutoutTaskRequest is the request struct for api SubmitCutoutTask
+type SubmitCutoutTaskRequest struct {
+	*requests.RpcRequest
+	PictureUrl *[]string `position:"Query" name:"PictureUrl"  type:"Repeated"`
+}
+
+// SubmitCutoutTaskResponse is the response struct for api SubmitCutoutTask
+type SubmitCutoutTaskResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	TaskId    int    `json:"TaskId" xml:"TaskId"`
+}
+
+// CreateSubmitCutoutTaskRequest creates a request to invoke SubmitCutoutTask API
+func CreateSubmitCutoutTaskRequest() (request *SubmitCutoutTaskRequest) {
+	request = &SubmitCutoutTaskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("lubancloud", "2018-05-09", "SubmitCutoutTask", "luban", "openAPI")
+	return
+}
+
+// CreateSubmitCutoutTaskResponse creates a response to parse from SubmitCutoutTask response
+func CreateSubmitCutoutTaskResponse() (response *SubmitCutoutTaskResponse) {
+	response = &SubmitCutoutTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 112 - 0
services/lubancloud/submit_generate_task.go

@@ -0,0 +1,112 @@
+package lubancloud
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// SubmitGenerateTask invokes the lubancloud.SubmitGenerateTask API synchronously
+// api document: https://help.aliyun.com/api/lubancloud/submitgeneratetask.html
+func (client *Client) SubmitGenerateTask(request *SubmitGenerateTaskRequest) (response *SubmitGenerateTaskResponse, err error) {
+	response = CreateSubmitGenerateTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// SubmitGenerateTaskWithChan invokes the lubancloud.SubmitGenerateTask API asynchronously
+// api document: https://help.aliyun.com/api/lubancloud/submitgeneratetask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SubmitGenerateTaskWithChan(request *SubmitGenerateTaskRequest) (<-chan *SubmitGenerateTaskResponse, <-chan error) {
+	responseChan := make(chan *SubmitGenerateTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.SubmitGenerateTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// SubmitGenerateTaskWithCallback invokes the lubancloud.SubmitGenerateTask API asynchronously
+// api document: https://help.aliyun.com/api/lubancloud/submitgeneratetask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SubmitGenerateTaskWithCallback(request *SubmitGenerateTaskRequest, callback func(response *SubmitGenerateTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *SubmitGenerateTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.SubmitGenerateTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// SubmitGenerateTaskRequest is the request struct for api SubmitGenerateTask
+type SubmitGenerateTaskRequest struct {
+	*requests.RpcRequest
+	ImageCount     requests.Integer `position:"Query" name:"ImageCount"`
+	ActionPoint    string           `position:"Query" name:"ActionPoint"`
+	LogoImagePath  string           `position:"Query" name:"LogoImagePath"`
+	Type           requests.Integer `position:"Query" name:"Type"`
+	MajorImagePath *[]string        `position:"Query" name:"MajorImagePath"  type:"Repeated"`
+	Width          requests.Integer `position:"Query" name:"Width"`
+	CopyWrite      *[]string        `position:"Query" name:"CopyWrite"  type:"Repeated"`
+	PropertyId     *[]string        `position:"Query" name:"PropertyId"  type:"Repeated"`
+	Height         requests.Integer `position:"Query" name:"Height"`
+}
+
+// SubmitGenerateTaskResponse is the response struct for api SubmitGenerateTask
+type SubmitGenerateTaskResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	TaskId    int    `json:"TaskId" xml:"TaskId"`
+}
+
+// CreateSubmitGenerateTaskRequest creates a request to invoke SubmitGenerateTask API
+func CreateSubmitGenerateTaskRequest() (request *SubmitGenerateTaskRequest) {
+	request = &SubmitGenerateTaskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("lubancloud", "2018-05-09", "SubmitGenerateTask", "luban", "openAPI")
+	return
+}
+
+// CreateSubmitGenerateTaskResponse creates a response to parse from SubmitGenerateTask response
+func CreateSubmitGenerateTaskResponse() (response *SubmitGenerateTaskResponse) {
+	response = &SubmitGenerateTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}