diff --git a/ChangeLog.txt b/ChangeLog.txt index 80fba8c0c..1eedf6709 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,9 @@ +2024-10-17 Version: v1.63.31 +- Generated 2018-01-29 for `Domain`. +- 基于转移码的转出接口 +- SaveSingleTaskForTransferOutByAuthorizationCode +- SaveBatchTaskForTransferOutByAuthorizationCode + 2024-10-16 Version: v1.63.30 - Generated 2024-04-15 for `Gwlb`. - Gwlb Open API released. diff --git a/services/domain/query_intl_fixed_price_order_list.go b/services/domain/query_intl_fixed_price_order_list.go index cd1da7578..3a4bc5912 100644 --- a/services/domain/query_intl_fixed_price_order_list.go +++ b/services/domain/query_intl_fixed_price_order_list.go @@ -80,8 +80,8 @@ type QueryIntlFixedPriceOrderListRequest struct { // QueryIntlFixedPriceOrderListResponse is the response struct for api QueryIntlFixedPriceOrderList type QueryIntlFixedPriceOrderListResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Module ModuleInQueryIntlFixedPriceOrderList `json:"Module" xml:"Module"` + RequestId string `json:"RequestId" xml:"RequestId"` + Module Module `json:"Module" xml:"Module"` } // CreateQueryIntlFixedPriceOrderListRequest creates a request to invoke QueryIntlFixedPriceOrderList API diff --git a/services/domain/save_batch_task_for_transfer_out_by_authorization_code.go b/services/domain/save_batch_task_for_transfer_out_by_authorization_code.go new file mode 100644 index 000000000..8c629fe39 --- /dev/null +++ b/services/domain/save_batch_task_for_transfer_out_by_authorization_code.go @@ -0,0 +1,108 @@ +package domain + +//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" +) + +// SaveBatchTaskForTransferOutByAuthorizationCode invokes the domain.SaveBatchTaskForTransferOutByAuthorizationCode API synchronously +func (client *Client) SaveBatchTaskForTransferOutByAuthorizationCode(request *SaveBatchTaskForTransferOutByAuthorizationCodeRequest) (response *SaveBatchTaskForTransferOutByAuthorizationCodeResponse, err error) { + response = CreateSaveBatchTaskForTransferOutByAuthorizationCodeResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForTransferOutByAuthorizationCodeWithChan invokes the domain.SaveBatchTaskForTransferOutByAuthorizationCode API asynchronously +func (client *Client) SaveBatchTaskForTransferOutByAuthorizationCodeWithChan(request *SaveBatchTaskForTransferOutByAuthorizationCodeRequest) (<-chan *SaveBatchTaskForTransferOutByAuthorizationCodeResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForTransferOutByAuthorizationCodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForTransferOutByAuthorizationCode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForTransferOutByAuthorizationCodeWithCallback invokes the domain.SaveBatchTaskForTransferOutByAuthorizationCode API asynchronously +func (client *Client) SaveBatchTaskForTransferOutByAuthorizationCodeWithCallback(request *SaveBatchTaskForTransferOutByAuthorizationCodeRequest, callback func(response *SaveBatchTaskForTransferOutByAuthorizationCodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForTransferOutByAuthorizationCodeResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForTransferOutByAuthorizationCode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForTransferOutByAuthorizationCodeRequest is the request struct for api SaveBatchTaskForTransferOutByAuthorizationCode +type SaveBatchTaskForTransferOutByAuthorizationCodeRequest struct { + *requests.RpcRequest + Long string `position:"Query" name:"Long"` + TransferOutParamList *[]SaveBatchTaskForTransferOutByAuthorizationCodeTransferOutParamList `position:"Query" name:"TransferOutParamList" type:"Repeated"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// SaveBatchTaskForTransferOutByAuthorizationCodeTransferOutParamList is a repeated param struct in SaveBatchTaskForTransferOutByAuthorizationCodeRequest +type SaveBatchTaskForTransferOutByAuthorizationCodeTransferOutParamList struct { + AuthorizationCode string `name:"AuthorizationCode"` + DomainName string `name:"DomainName"` +} + +// SaveBatchTaskForTransferOutByAuthorizationCodeResponse is the response struct for api SaveBatchTaskForTransferOutByAuthorizationCode +type SaveBatchTaskForTransferOutByAuthorizationCodeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForTransferOutByAuthorizationCodeRequest creates a request to invoke SaveBatchTaskForTransferOutByAuthorizationCode API +func CreateSaveBatchTaskForTransferOutByAuthorizationCodeRequest() (request *SaveBatchTaskForTransferOutByAuthorizationCodeRequest) { + request = &SaveBatchTaskForTransferOutByAuthorizationCodeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForTransferOutByAuthorizationCode", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveBatchTaskForTransferOutByAuthorizationCodeResponse creates a response to parse from SaveBatchTaskForTransferOutByAuthorizationCode response +func CreateSaveBatchTaskForTransferOutByAuthorizationCodeResponse() (response *SaveBatchTaskForTransferOutByAuthorizationCodeResponse) { + response = &SaveBatchTaskForTransferOutByAuthorizationCodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_transfer_out_by_authorization_code.go b/services/domain/save_single_task_for_transfer_out_by_authorization_code.go new file mode 100644 index 000000000..fa58cd2a3 --- /dev/null +++ b/services/domain/save_single_task_for_transfer_out_by_authorization_code.go @@ -0,0 +1,103 @@ +package domain + +//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" +) + +// SaveSingleTaskForTransferOutByAuthorizationCode invokes the domain.SaveSingleTaskForTransferOutByAuthorizationCode API synchronously +func (client *Client) SaveSingleTaskForTransferOutByAuthorizationCode(request *SaveSingleTaskForTransferOutByAuthorizationCodeRequest) (response *SaveSingleTaskForTransferOutByAuthorizationCodeResponse, err error) { + response = CreateSaveSingleTaskForTransferOutByAuthorizationCodeResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForTransferOutByAuthorizationCodeWithChan invokes the domain.SaveSingleTaskForTransferOutByAuthorizationCode API asynchronously +func (client *Client) SaveSingleTaskForTransferOutByAuthorizationCodeWithChan(request *SaveSingleTaskForTransferOutByAuthorizationCodeRequest) (<-chan *SaveSingleTaskForTransferOutByAuthorizationCodeResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForTransferOutByAuthorizationCodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForTransferOutByAuthorizationCode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForTransferOutByAuthorizationCodeWithCallback invokes the domain.SaveSingleTaskForTransferOutByAuthorizationCode API asynchronously +func (client *Client) SaveSingleTaskForTransferOutByAuthorizationCodeWithCallback(request *SaveSingleTaskForTransferOutByAuthorizationCodeRequest, callback func(response *SaveSingleTaskForTransferOutByAuthorizationCodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForTransferOutByAuthorizationCodeResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForTransferOutByAuthorizationCode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForTransferOutByAuthorizationCodeRequest is the request struct for api SaveSingleTaskForTransferOutByAuthorizationCode +type SaveSingleTaskForTransferOutByAuthorizationCodeRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + AuthorizationCode string `position:"Query" name:"AuthorizationCode"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForTransferOutByAuthorizationCodeResponse is the response struct for api SaveSingleTaskForTransferOutByAuthorizationCode +type SaveSingleTaskForTransferOutByAuthorizationCodeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForTransferOutByAuthorizationCodeRequest creates a request to invoke SaveSingleTaskForTransferOutByAuthorizationCode API +func CreateSaveSingleTaskForTransferOutByAuthorizationCodeRequest() (request *SaveSingleTaskForTransferOutByAuthorizationCodeRequest) { + request = &SaveSingleTaskForTransferOutByAuthorizationCodeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForTransferOutByAuthorizationCode", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForTransferOutByAuthorizationCodeResponse creates a response to parse from SaveSingleTaskForTransferOutByAuthorizationCode response +func CreateSaveSingleTaskForTransferOutByAuthorizationCodeResponse() (response *SaveSingleTaskForTransferOutByAuthorizationCodeResponse) { + response = &SaveSingleTaskForTransferOutByAuthorizationCodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/struct_data_in_query_intl_fixed_price_order_list.go b/services/domain/struct_data_in_query_intl_fixed_price_order_list.go new file mode 100644 index 000000000..2125ec258 --- /dev/null +++ b/services/domain/struct_data_in_query_intl_fixed_price_order_list.go @@ -0,0 +1,21 @@ +package domain + +//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. + +// DataInQueryIntlFixedPriceOrderList is a nested struct in domain response +type DataInQueryIntlFixedPriceOrderList struct { + OrderList []OrderList `json:"OrderList" xml:"OrderList"` +} diff --git a/services/domain/struct_module.go b/services/domain/struct_module.go index f1ed32c70..1c3e56f3d 100644 --- a/services/domain/struct_module.go +++ b/services/domain/struct_module.go @@ -23,6 +23,7 @@ type Module struct { SaleId string `json:"SaleId" xml:"SaleId"` DownloadUrl string `json:"DownloadUrl" xml:"DownloadUrl"` CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + PageSize int `json:"PageSize" xml:"PageSize"` EndTime int64 `json:"EndTime" xml:"EndTime"` OrderNo string `json:"OrderNo" xml:"OrderNo"` OrderId string `json:"OrderId" xml:"OrderId"` @@ -31,7 +32,9 @@ type Module struct { BizType string `json:"BizType" xml:"BizType"` UserId string `json:"UserId" xml:"UserId"` PayPrice int64 `json:"PayPrice" xml:"PayPrice"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` DeadDate int64 `json:"DeadDate" xml:"DeadDate"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` BizStatus string `json:"BizStatus" xml:"BizStatus"` Status int `json:"Status" xml:"Status"` UpdateTime int64 `json:"UpdateTime" xml:"UpdateTime"` @@ -43,9 +46,11 @@ type Module struct { RegDate int64 `json:"RegDate" xml:"RegDate"` AuditMsg string `json:"AuditMsg" xml:"AuditMsg"` BizNo string `json:"BizNo" xml:"BizNo"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` StatusDesc string `json:"StatusDesc" xml:"StatusDesc"` Price int64 `json:"Price" xml:"Price"` DomainSpecialBizContact DomainSpecialBizContact `json:"DomainSpecialBizContact" xml:"DomainSpecialBizContact"` DomainSpecialOrderResult DomainSpecialOrderResult `json:"DomainSpecialOrderResult" xml:"DomainSpecialOrderResult"` DomainSpecialBizCredentials []DomainSpecialBizCredential `json:"DomainSpecialBizCredentials" xml:"DomainSpecialBizCredentials"` + Data []OrderList `json:"Data" xml:"Data"` } diff --git a/services/domain/struct_module_in_query_intl_fixed_price_order_list.go b/services/domain/struct_order_list.go similarity index 81% rename from services/domain/struct_module_in_query_intl_fixed_price_order_list.go rename to services/domain/struct_order_list.go index 4aa36938f..1ad77bae1 100644 --- a/services/domain/struct_module_in_query_intl_fixed_price_order_list.go +++ b/services/domain/struct_order_list.go @@ -15,14 +15,14 @@ package domain // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// ModuleInQueryIntlFixedPriceOrderList is a nested struct in domain response -type ModuleInQueryIntlFixedPriceOrderList struct { - CreateTime int64 `json:"CreateTime" xml:"CreateTime"` - UpdateTime int64 `json:"UpdateTime" xml:"UpdateTime"` - UserId string `json:"UserId" xml:"UserId"` +// OrderList is a nested struct in domain response +type OrderList struct { + OrderType int `json:"OrderType" xml:"OrderType"` BizId string `json:"BizId" xml:"BizId"` - Domain string `json:"Domain" xml:"Domain"` + UserId string `json:"UserId" xml:"UserId"` + Status int `json:"Status" xml:"Status"` Price int64 `json:"Price" xml:"Price"` - Status int64 `json:"Status" xml:"Status"` - OrderType int64 `json:"OrderType" xml:"OrderType"` + Domain string `json:"Domain" xml:"Domain"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + UpdateTime int64 `json:"UpdateTime" xml:"UpdateTime"` }