Browse Source

由铁琴发起的DOMAIN SDK自动发布, 版本号:1.12.0

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 7 years ago
parent
commit
880b3a41f2

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-05-09 Version: 1.12.0
+1, Add apis for domain broker.
+
 2018-05-08 Version: 1.11.3
 1, Add instance params.
 

+ 104 - 0
services/domain/accept_demand.go

@@ -0,0 +1,104 @@
+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"
+)
+
+// AcceptDemand invokes the domain.AcceptDemand API synchronously
+// api document: https://help.aliyun.com/api/domain/acceptdemand.html
+func (client *Client) AcceptDemand(request *AcceptDemandRequest) (response *AcceptDemandResponse, err error) {
+	response = CreateAcceptDemandResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// AcceptDemandWithChan invokes the domain.AcceptDemand API asynchronously
+// api document: https://help.aliyun.com/api/domain/acceptdemand.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AcceptDemandWithChan(request *AcceptDemandRequest) (<-chan *AcceptDemandResponse, <-chan error) {
+	responseChan := make(chan *AcceptDemandResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.AcceptDemand(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// AcceptDemandWithCallback invokes the domain.AcceptDemand API asynchronously
+// api document: https://help.aliyun.com/api/domain/acceptdemand.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AcceptDemandWithCallback(request *AcceptDemandRequest, callback func(response *AcceptDemandResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *AcceptDemandResponse
+		var err error
+		defer close(result)
+		response, err = client.AcceptDemand(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// AcceptDemandRequest is the request struct for api AcceptDemand
+type AcceptDemandRequest struct {
+	*requests.RpcRequest
+	BizId   string `position:"Query" name:"BizId"`
+	Message string `position:"Query" name:"Message"`
+}
+
+// AcceptDemandResponse is the response struct for api AcceptDemand
+type AcceptDemandResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateAcceptDemandRequest creates a request to invoke AcceptDemand API
+func CreateAcceptDemandRequest() (request *AcceptDemandRequest) {
+	request = &AcceptDemandRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Domain", "2018-02-08", "AcceptDemand", "", "")
+	return
+}
+
+// CreateAcceptDemandResponse creates a response to parse from AcceptDemand response
+func CreateAcceptDemandResponse() (response *AcceptDemandResponse) {
+	response = &AcceptDemandResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 104 - 0
services/domain/fail_demand.go

@@ -0,0 +1,104 @@
+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"
+)
+
+// FailDemand invokes the domain.FailDemand API synchronously
+// api document: https://help.aliyun.com/api/domain/faildemand.html
+func (client *Client) FailDemand(request *FailDemandRequest) (response *FailDemandResponse, err error) {
+	response = CreateFailDemandResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// FailDemandWithChan invokes the domain.FailDemand API asynchronously
+// api document: https://help.aliyun.com/api/domain/faildemand.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) FailDemandWithChan(request *FailDemandRequest) (<-chan *FailDemandResponse, <-chan error) {
+	responseChan := make(chan *FailDemandResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.FailDemand(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// FailDemandWithCallback invokes the domain.FailDemand API asynchronously
+// api document: https://help.aliyun.com/api/domain/faildemand.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) FailDemandWithCallback(request *FailDemandRequest, callback func(response *FailDemandResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *FailDemandResponse
+		var err error
+		defer close(result)
+		response, err = client.FailDemand(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// FailDemandRequest is the request struct for api FailDemand
+type FailDemandRequest struct {
+	*requests.RpcRequest
+	BizId   string `position:"Query" name:"BizId"`
+	Message string `position:"Query" name:"Message"`
+}
+
+// FailDemandResponse is the response struct for api FailDemand
+type FailDemandResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateFailDemandRequest creates a request to invoke FailDemand API
+func CreateFailDemandRequest() (request *FailDemandRequest) {
+	request = &FailDemandRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Domain", "2018-02-08", "FailDemand", "", "")
+	return
+}
+
+// CreateFailDemandResponse creates a response to parse from FailDemand response
+func CreateFailDemandResponse() (response *FailDemandResponse) {
+	response = &FailDemandResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 104 - 0
services/domain/finish_demand.go

@@ -0,0 +1,104 @@
+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"
+)
+
+// FinishDemand invokes the domain.FinishDemand API synchronously
+// api document: https://help.aliyun.com/api/domain/finishdemand.html
+func (client *Client) FinishDemand(request *FinishDemandRequest) (response *FinishDemandResponse, err error) {
+	response = CreateFinishDemandResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// FinishDemandWithChan invokes the domain.FinishDemand API asynchronously
+// api document: https://help.aliyun.com/api/domain/finishdemand.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) FinishDemandWithChan(request *FinishDemandRequest) (<-chan *FinishDemandResponse, <-chan error) {
+	responseChan := make(chan *FinishDemandResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.FinishDemand(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// FinishDemandWithCallback invokes the domain.FinishDemand API asynchronously
+// api document: https://help.aliyun.com/api/domain/finishdemand.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) FinishDemandWithCallback(request *FinishDemandRequest, callback func(response *FinishDemandResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *FinishDemandResponse
+		var err error
+		defer close(result)
+		response, err = client.FinishDemand(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// FinishDemandRequest is the request struct for api FinishDemand
+type FinishDemandRequest struct {
+	*requests.RpcRequest
+	BizId   string `position:"Query" name:"BizId"`
+	Message string `position:"Query" name:"Message"`
+}
+
+// FinishDemandResponse is the response struct for api FinishDemand
+type FinishDemandResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateFinishDemandRequest creates a request to invoke FinishDemand API
+func CreateFinishDemandRequest() (request *FinishDemandRequest) {
+	request = &FinishDemandRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Domain", "2018-02-08", "FinishDemand", "", "")
+	return
+}
+
+// CreateFinishDemandResponse creates a response to parse from FinishDemand response
+func CreateFinishDemandResponse() (response *FinishDemandResponse) {
+	response = &FinishDemandResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 111 - 0
services/domain/query_broker_demand.go

@@ -0,0 +1,111 @@
+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"
+)
+
+// QueryBrokerDemand invokes the domain.QueryBrokerDemand API synchronously
+// api document: https://help.aliyun.com/api/domain/querybrokerdemand.html
+func (client *Client) QueryBrokerDemand(request *QueryBrokerDemandRequest) (response *QueryBrokerDemandResponse, err error) {
+	response = CreateQueryBrokerDemandResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryBrokerDemandWithChan invokes the domain.QueryBrokerDemand API asynchronously
+// api document: https://help.aliyun.com/api/domain/querybrokerdemand.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryBrokerDemandWithChan(request *QueryBrokerDemandRequest) (<-chan *QueryBrokerDemandResponse, <-chan error) {
+	responseChan := make(chan *QueryBrokerDemandResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryBrokerDemand(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryBrokerDemandWithCallback invokes the domain.QueryBrokerDemand API asynchronously
+// api document: https://help.aliyun.com/api/domain/querybrokerdemand.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryBrokerDemandWithCallback(request *QueryBrokerDemandRequest, callback func(response *QueryBrokerDemandResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryBrokerDemandResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryBrokerDemand(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryBrokerDemandRequest is the request struct for api QueryBrokerDemand
+type QueryBrokerDemandRequest struct {
+	*requests.RpcRequest
+	Status      string           `position:"Query" name:"Status"`
+	CurrentPage requests.Integer `position:"Query" name:"CurrentPage"`
+	PageSize    requests.Integer `position:"Query" name:"PageSize"`
+	BizId       string           `position:"Query" name:"BizId"`
+}
+
+// QueryBrokerDemandResponse is the response struct for api QueryBrokerDemand
+type QueryBrokerDemandResponse struct {
+	*responses.BaseResponse
+	RequestId      string   `json:"RequestId" xml:"RequestId"`
+	TotalItemNum   int      `json:"TotalItemNum" xml:"TotalItemNum"`
+	CurrentPageNum int      `json:"CurrentPageNum" xml:"CurrentPageNum"`
+	PageSize       int      `json:"PageSize" xml:"PageSize"`
+	TotalPageNum   int      `json:"TotalPageNum" xml:"TotalPageNum"`
+	Data           []Demand `json:"Data" xml:"Data"`
+}
+
+// CreateQueryBrokerDemandRequest creates a request to invoke QueryBrokerDemand API
+func CreateQueryBrokerDemandRequest() (request *QueryBrokerDemandRequest) {
+	request = &QueryBrokerDemandRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Domain", "2018-02-08", "QueryBrokerDemand", "", "")
+	return
+}
+
+// CreateQueryBrokerDemandResponse creates a response to parse from QueryBrokerDemand response
+func CreateQueryBrokerDemandResponse() (response *QueryBrokerDemandResponse) {
+	response = &QueryBrokerDemandResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/domain/query_broker_demand_record.go

@@ -0,0 +1,110 @@
+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"
+)
+
+// QueryBrokerDemandRecord invokes the domain.QueryBrokerDemandRecord API synchronously
+// api document: https://help.aliyun.com/api/domain/querybrokerdemandrecord.html
+func (client *Client) QueryBrokerDemandRecord(request *QueryBrokerDemandRecordRequest) (response *QueryBrokerDemandRecordResponse, err error) {
+	response = CreateQueryBrokerDemandRecordResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryBrokerDemandRecordWithChan invokes the domain.QueryBrokerDemandRecord API asynchronously
+// api document: https://help.aliyun.com/api/domain/querybrokerdemandrecord.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryBrokerDemandRecordWithChan(request *QueryBrokerDemandRecordRequest) (<-chan *QueryBrokerDemandRecordResponse, <-chan error) {
+	responseChan := make(chan *QueryBrokerDemandRecordResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryBrokerDemandRecord(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryBrokerDemandRecordWithCallback invokes the domain.QueryBrokerDemandRecord API asynchronously
+// api document: https://help.aliyun.com/api/domain/querybrokerdemandrecord.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryBrokerDemandRecordWithCallback(request *QueryBrokerDemandRecordRequest, callback func(response *QueryBrokerDemandRecordResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryBrokerDemandRecordResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryBrokerDemandRecord(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryBrokerDemandRecordRequest is the request struct for api QueryBrokerDemandRecord
+type QueryBrokerDemandRecordRequest struct {
+	*requests.RpcRequest
+	CurrentPage requests.Integer `position:"Query" name:"CurrentPage"`
+	PageSize    requests.Integer `position:"Query" name:"PageSize"`
+	BizId       string           `position:"Query" name:"BizId"`
+}
+
+// QueryBrokerDemandRecordResponse is the response struct for api QueryBrokerDemandRecord
+type QueryBrokerDemandRecordResponse struct {
+	*responses.BaseResponse
+	RequestId      string                        `json:"RequestId" xml:"RequestId"`
+	TotalItemNum   int                           `json:"TotalItemNum" xml:"TotalItemNum"`
+	CurrentPageNum int                           `json:"CurrentPageNum" xml:"CurrentPageNum"`
+	PageSize       int                           `json:"PageSize" xml:"PageSize"`
+	TotalPageNum   int                           `json:"TotalPageNum" xml:"TotalPageNum"`
+	Data           DataInQueryBrokerDemandRecord `json:"Data" xml:"Data"`
+}
+
+// CreateQueryBrokerDemandRecordRequest creates a request to invoke QueryBrokerDemandRecord API
+func CreateQueryBrokerDemandRecordRequest() (request *QueryBrokerDemandRecordRequest) {
+	request = &QueryBrokerDemandRecordRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Domain", "2018-02-08", "QueryBrokerDemandRecord", "", "")
+	return
+}
+
+// CreateQueryBrokerDemandRecordResponse creates a response to parse from QueryBrokerDemandRecord response
+func CreateQueryBrokerDemandRecordResponse() (response *QueryBrokerDemandRecordResponse) {
+	response = &QueryBrokerDemandRecordResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 104 - 0
services/domain/record_demand.go

@@ -0,0 +1,104 @@
+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"
+)
+
+// RecordDemand invokes the domain.RecordDemand API synchronously
+// api document: https://help.aliyun.com/api/domain/recorddemand.html
+func (client *Client) RecordDemand(request *RecordDemandRequest) (response *RecordDemandResponse, err error) {
+	response = CreateRecordDemandResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// RecordDemandWithChan invokes the domain.RecordDemand API asynchronously
+// api document: https://help.aliyun.com/api/domain/recorddemand.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RecordDemandWithChan(request *RecordDemandRequest) (<-chan *RecordDemandResponse, <-chan error) {
+	responseChan := make(chan *RecordDemandResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.RecordDemand(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// RecordDemandWithCallback invokes the domain.RecordDemand API asynchronously
+// api document: https://help.aliyun.com/api/domain/recorddemand.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RecordDemandWithCallback(request *RecordDemandRequest, callback func(response *RecordDemandResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *RecordDemandResponse
+		var err error
+		defer close(result)
+		response, err = client.RecordDemand(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// RecordDemandRequest is the request struct for api RecordDemand
+type RecordDemandRequest struct {
+	*requests.RpcRequest
+	BizId   string `position:"Query" name:"BizId"`
+	Message string `position:"Query" name:"Message"`
+}
+
+// RecordDemandResponse is the response struct for api RecordDemand
+type RecordDemandResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateRecordDemandRequest creates a request to invoke RecordDemand API
+func CreateRecordDemandRequest() (request *RecordDemandRequest) {
+	request = &RecordDemandRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Domain", "2018-02-08", "RecordDemand", "", "")
+	return
+}
+
+// CreateRecordDemandResponse creates a response to parse from RecordDemand response
+func CreateRecordDemandResponse() (response *RecordDemandResponse) {
+	response = &RecordDemandResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 104 - 0
services/domain/refuse_demand.go

@@ -0,0 +1,104 @@
+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"
+)
+
+// RefuseDemand invokes the domain.RefuseDemand API synchronously
+// api document: https://help.aliyun.com/api/domain/refusedemand.html
+func (client *Client) RefuseDemand(request *RefuseDemandRequest) (response *RefuseDemandResponse, err error) {
+	response = CreateRefuseDemandResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// RefuseDemandWithChan invokes the domain.RefuseDemand API asynchronously
+// api document: https://help.aliyun.com/api/domain/refusedemand.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RefuseDemandWithChan(request *RefuseDemandRequest) (<-chan *RefuseDemandResponse, <-chan error) {
+	responseChan := make(chan *RefuseDemandResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.RefuseDemand(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// RefuseDemandWithCallback invokes the domain.RefuseDemand API asynchronously
+// api document: https://help.aliyun.com/api/domain/refusedemand.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RefuseDemandWithCallback(request *RefuseDemandRequest, callback func(response *RefuseDemandResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *RefuseDemandResponse
+		var err error
+		defer close(result)
+		response, err = client.RefuseDemand(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// RefuseDemandRequest is the request struct for api RefuseDemand
+type RefuseDemandRequest struct {
+	*requests.RpcRequest
+	BizId   string `position:"Query" name:"BizId"`
+	Message string `position:"Query" name:"Message"`
+}
+
+// RefuseDemandResponse is the response struct for api RefuseDemand
+type RefuseDemandResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateRefuseDemandRequest creates a request to invoke RefuseDemand API
+func CreateRefuseDemandRequest() (request *RefuseDemandRequest) {
+	request = &RefuseDemandRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Domain", "2018-02-08", "RefuseDemand", "", "")
+	return
+}
+
+// CreateRefuseDemandResponse creates a response to parse from RefuseDemand response
+func CreateRefuseDemandResponse() (response *RefuseDemandResponse) {
+	response = &RefuseDemandResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/domain/request_pay_demand.go

@@ -0,0 +1,107 @@
+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"
+)
+
+// RequestPayDemand invokes the domain.RequestPayDemand API synchronously
+// api document: https://help.aliyun.com/api/domain/requestpaydemand.html
+func (client *Client) RequestPayDemand(request *RequestPayDemandRequest) (response *RequestPayDemandResponse, err error) {
+	response = CreateRequestPayDemandResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// RequestPayDemandWithChan invokes the domain.RequestPayDemand API asynchronously
+// api document: https://help.aliyun.com/api/domain/requestpaydemand.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RequestPayDemandWithChan(request *RequestPayDemandRequest) (<-chan *RequestPayDemandResponse, <-chan error) {
+	responseChan := make(chan *RequestPayDemandResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.RequestPayDemand(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// RequestPayDemandWithCallback invokes the domain.RequestPayDemand API asynchronously
+// api document: https://help.aliyun.com/api/domain/requestpaydemand.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RequestPayDemandWithCallback(request *RequestPayDemandRequest, callback func(response *RequestPayDemandResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *RequestPayDemandResponse
+		var err error
+		defer close(result)
+		response, err = client.RequestPayDemand(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// RequestPayDemandRequest is the request struct for api RequestPayDemand
+type RequestPayDemandRequest struct {
+	*requests.RpcRequest
+	BizId       string           `position:"Query" name:"BizId"`
+	Message     string           `position:"Query" name:"Message"`
+	DomainName  string           `position:"Query" name:"DomainName"`
+	Price       requests.Float   `position:"Query" name:"Price"`
+	ProduceType requests.Integer `position:"Query" name:"ProduceType"`
+}
+
+// RequestPayDemandResponse is the response struct for api RequestPayDemand
+type RequestPayDemandResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateRequestPayDemandRequest creates a request to invoke RequestPayDemand API
+func CreateRequestPayDemandRequest() (request *RequestPayDemandRequest) {
+	request = &RequestPayDemandRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Domain", "2018-02-08", "RequestPayDemand", "", "")
+	return
+}
+
+// CreateRequestPayDemandResponse creates a response to parse from RequestPayDemand response
+func CreateRequestPayDemandResponse() (response *RequestPayDemandResponse) {
+	response = &RequestPayDemandResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 23 - 0
services/domain/struct_broker_demand_record.go

@@ -0,0 +1,23 @@
+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.
+
+// BrokerDemandRecord is a nested struct in domain response
+type BrokerDemandRecord struct {
+	BizId       string `json:"BizId" xml:"BizId"`
+	Description string `json:"Description" xml:"Description"`
+	CreateTime  int    `json:"CreateTime" xml:"CreateTime"`
+}

+ 21 - 0
services/domain/struct_data_in_query_broker_demand.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.
+
+// DataInQueryBrokerDemand is a nested struct in domain response
+type DataInQueryBrokerDemand struct {
+	Demand []Demand `json:"Demand" xml:"Demand"`
+}

+ 21 - 0
services/domain/struct_data_in_query_broker_demand_record.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.
+
+// DataInQueryBrokerDemandRecord is a nested struct in domain response
+type DataInQueryBrokerDemandRecord struct {
+	BrokerDemandRecord []BrokerDemandRecord `json:"BrokerDemandRecord" xml:"BrokerDemandRecord"`
+}

+ 31 - 0
services/domain/struct_demand.go

@@ -0,0 +1,31 @@
+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.
+
+// Demand is a nested struct in domain response
+type Demand struct {
+	BizId        string  `json:"BizId" xml:"BizId"`
+	Status       string  `json:"Status" xml:"Status"`
+	DemandDomain string  `json:"DemandDomain" xml:"DemandDomain"`
+	DemandPrice  float64 `json:"DemandPrice" xml:"DemandPrice"`
+	Mobile       string  `json:"Mobile" xml:"Mobile"`
+	Description  string  `json:"Description" xml:"Description"`
+	PublishTime  int     `json:"PublishTime" xml:"PublishTime"`
+	PayDomain    string  `json:"PayDomain" xml:"PayDomain"`
+	PayPrice     float64 `json:"PayPrice" xml:"PayPrice"`
+	PayTime      int     `json:"PayTime" xml:"PayTime"`
+	ProduceType  int     `json:"ProduceType" xml:"ProduceType"`
+}