Explorar o código

Generated 2019-12-30 for facebody.

sdk-team %!s(int64=5) %!d(string=hai) anos
pai
achega
b3272860a4

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2020-02-09 Version: v1.60.353
+- Generated 2019-12-30 for `facebody`.
+- Sdk version 104.
+
 2020-02-07 Version: v1.60.352
 2020-02-07 Version: v1.60.352
 - Generated 2018-01-01 for `pvtz`.
 - Generated 2018-01-01 for `pvtz`.
 - Fix bug for DescribeZoneInfo, delete return result of reionId.
 - Fix bug for DescribeZoneInfo, delete return result of reionId.

+ 129 - 0
services/facebody/client.go

@@ -0,0 +1,129 @@
+package facebody
+
+//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 (
+	"reflect"
+
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider"
+)
+
+// Client is the sdk client struct, each func corresponds to an OpenAPI
+type Client struct {
+	sdk.Client
+}
+
+// SetClientProperty Set Property by Reflect
+func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) {
+	v := reflect.ValueOf(client).Elem()
+	if v.FieldByName(propertyName).IsValid() && v.FieldByName(propertyName).CanSet() {
+		v.FieldByName(propertyName).Set(reflect.ValueOf(propertyValue))
+	}
+}
+
+// SetEndpointDataToClient Set EndpointMap and ENdpointType
+func SetEndpointDataToClient(client *Client) {
+	SetClientProperty(client, "EndpointMap", GetEndpointMap())
+	SetClientProperty(client, "EndpointType", GetEndpointType())
+}
+
+// NewClient creates a sdk client with environment variables
+func NewClient() (client *Client, err error) {
+	client = &Client{}
+	err = client.Init()
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithProvider creates a sdk client with providers
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) {
+	client = &Client{}
+	var pc provider.Provider
+	if len(providers) == 0 {
+		pc = provider.DefaultChain
+	} else {
+		pc = provider.NewProviderChain(providers)
+	}
+	err = client.InitWithProviderChain(regionId, pc)
+	SetEndpointDataToClient(client)
+	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)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithAccessKey is a shortcut to create sdk client with accesskey
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithStsToken is a shortcut to create sdk client with sts token
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithEcsRamRole(regionId, roleName)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
+	SetEndpointDataToClient(client)
+	return
+}

+ 106 - 0
services/facebody/compare_face.go

@@ -0,0 +1,106 @@
+package facebody
+
+//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"
+)
+
+// CompareFace invokes the facebody.CompareFace API synchronously
+// api document: https://help.aliyun.com/api/facebody/compareface.html
+func (client *Client) CompareFace(request *CompareFaceRequest) (response *CompareFaceResponse, err error) {
+	response = CreateCompareFaceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CompareFaceWithChan invokes the facebody.CompareFace API asynchronously
+// api document: https://help.aliyun.com/api/facebody/compareface.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CompareFaceWithChan(request *CompareFaceRequest) (<-chan *CompareFaceResponse, <-chan error) {
+	responseChan := make(chan *CompareFaceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CompareFace(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CompareFaceWithCallback invokes the facebody.CompareFace API asynchronously
+// api document: https://help.aliyun.com/api/facebody/compareface.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CompareFaceWithCallback(request *CompareFaceRequest, callback func(response *CompareFaceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CompareFaceResponse
+		var err error
+		defer close(result)
+		response, err = client.CompareFace(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CompareFaceRequest is the request struct for api CompareFace
+type CompareFaceRequest struct {
+	*requests.RpcRequest
+	ImageType requests.Integer `position:"Body" name:"ImageType"`
+	ImageURLB string           `position:"Body" name:"ImageURLB"`
+	ImageURLA string           `position:"Body" name:"ImageURLA"`
+}
+
+// CompareFaceResponse is the response struct for api CompareFace
+type CompareFaceResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateCompareFaceRequest creates a request to invoke CompareFace API
+func CreateCompareFaceRequest() (request *CompareFaceRequest) {
+	request = &CompareFaceRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("facebody", "2019-12-30", "CompareFace", "facebody", "openAPI")
+	return
+}
+
+// CreateCompareFaceResponse creates a response to parse from CompareFace response
+func CreateCompareFaceResponse() (response *CompareFaceResponse) {
+	response = &CompareFaceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/facebody/detect_face.go

@@ -0,0 +1,105 @@
+package facebody
+
+//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"
+)
+
+// DetectFace invokes the facebody.DetectFace API synchronously
+// api document: https://help.aliyun.com/api/facebody/detectface.html
+func (client *Client) DetectFace(request *DetectFaceRequest) (response *DetectFaceResponse, err error) {
+	response = CreateDetectFaceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DetectFaceWithChan invokes the facebody.DetectFace API asynchronously
+// api document: https://help.aliyun.com/api/facebody/detectface.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DetectFaceWithChan(request *DetectFaceRequest) (<-chan *DetectFaceResponse, <-chan error) {
+	responseChan := make(chan *DetectFaceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DetectFace(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DetectFaceWithCallback invokes the facebody.DetectFace API asynchronously
+// api document: https://help.aliyun.com/api/facebody/detectface.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DetectFaceWithCallback(request *DetectFaceRequest, callback func(response *DetectFaceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DetectFaceResponse
+		var err error
+		defer close(result)
+		response, err = client.DetectFace(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DetectFaceRequest is the request struct for api DetectFace
+type DetectFaceRequest struct {
+	*requests.RpcRequest
+	ImageType requests.Integer `position:"Body" name:"ImageType"`
+	ImageURL  string           `position:"Body" name:"ImageURL"`
+}
+
+// DetectFaceResponse is the response struct for api DetectFace
+type DetectFaceResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateDetectFaceRequest creates a request to invoke DetectFace API
+func CreateDetectFaceRequest() (request *DetectFaceRequest) {
+	request = &DetectFaceRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("facebody", "2019-12-30", "DetectFace", "facebody", "openAPI")
+	return
+}
+
+// CreateDetectFaceResponse creates a response to parse from DetectFace response
+func CreateDetectFaceResponse() (response *DetectFaceResponse) {
+	response = &DetectFaceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 104 - 0
services/facebody/detect_mask.go

@@ -0,0 +1,104 @@
+package facebody
+
+//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"
+)
+
+// DetectMask invokes the facebody.DetectMask API synchronously
+// api document: https://help.aliyun.com/api/facebody/detectmask.html
+func (client *Client) DetectMask(request *DetectMaskRequest) (response *DetectMaskResponse, err error) {
+	response = CreateDetectMaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DetectMaskWithChan invokes the facebody.DetectMask API asynchronously
+// api document: https://help.aliyun.com/api/facebody/detectmask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DetectMaskWithChan(request *DetectMaskRequest) (<-chan *DetectMaskResponse, <-chan error) {
+	responseChan := make(chan *DetectMaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DetectMask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DetectMaskWithCallback invokes the facebody.DetectMask API asynchronously
+// api document: https://help.aliyun.com/api/facebody/detectmask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DetectMaskWithCallback(request *DetectMaskRequest, callback func(response *DetectMaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DetectMaskResponse
+		var err error
+		defer close(result)
+		response, err = client.DetectMask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DetectMaskRequest is the request struct for api DetectMask
+type DetectMaskRequest struct {
+	*requests.RpcRequest
+	ImageURL string `position:"Body" name:"ImageURL"`
+}
+
+// DetectMaskResponse is the response struct for api DetectMask
+type DetectMaskResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateDetectMaskRequest creates a request to invoke DetectMask API
+func CreateDetectMaskRequest() (request *DetectMaskRequest) {
+	request = &DetectMaskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("facebody", "2019-12-30", "DetectMask", "facebody", "openAPI")
+	return
+}
+
+// CreateDetectMaskResponse creates a response to parse from DetectMask response
+func CreateDetectMaskResponse() (response *DetectMaskResponse) {
+	response = &DetectMaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 20 - 0
services/facebody/endpoint.go

@@ -0,0 +1,20 @@
+package facebody
+
+// EndpointMap Endpoint Data
+var EndpointMap map[string]string
+
+// EndpointType regional or central
+var EndpointType = "regional"
+
+// GetEndpointMap Get Endpoint Data Map
+func GetEndpointMap() map[string]string {
+	if EndpointMap == nil {
+		EndpointMap = map[string]string{}
+	}
+	return EndpointMap
+}
+
+// GetEndpointType Get Endpoint Type Value
+func GetEndpointType() string {
+	return EndpointType
+}

+ 105 - 0
services/facebody/recognize_face.go

@@ -0,0 +1,105 @@
+package facebody
+
+//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"
+)
+
+// RecognizeFace invokes the facebody.RecognizeFace API synchronously
+// api document: https://help.aliyun.com/api/facebody/recognizeface.html
+func (client *Client) RecognizeFace(request *RecognizeFaceRequest) (response *RecognizeFaceResponse, err error) {
+	response = CreateRecognizeFaceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// RecognizeFaceWithChan invokes the facebody.RecognizeFace API asynchronously
+// api document: https://help.aliyun.com/api/facebody/recognizeface.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RecognizeFaceWithChan(request *RecognizeFaceRequest) (<-chan *RecognizeFaceResponse, <-chan error) {
+	responseChan := make(chan *RecognizeFaceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.RecognizeFace(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// RecognizeFaceWithCallback invokes the facebody.RecognizeFace API asynchronously
+// api document: https://help.aliyun.com/api/facebody/recognizeface.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RecognizeFaceWithCallback(request *RecognizeFaceRequest, callback func(response *RecognizeFaceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *RecognizeFaceResponse
+		var err error
+		defer close(result)
+		response, err = client.RecognizeFace(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// RecognizeFaceRequest is the request struct for api RecognizeFace
+type RecognizeFaceRequest struct {
+	*requests.RpcRequest
+	ImageType requests.Integer `position:"Body" name:"ImageType"`
+	ImageURL  string           `position:"Body" name:"ImageURL"`
+}
+
+// RecognizeFaceResponse is the response struct for api RecognizeFace
+type RecognizeFaceResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateRecognizeFaceRequest creates a request to invoke RecognizeFace API
+func CreateRecognizeFaceRequest() (request *RecognizeFaceRequest) {
+	request = &RecognizeFaceRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("facebody", "2019-12-30", "RecognizeFace", "facebody", "openAPI")
+	return
+}
+
+// CreateRecognizeFaceResponse creates a response to parse from RecognizeFace response
+func CreateRecognizeFaceResponse() (response *RecognizeFaceResponse) {
+	response = &RecognizeFaceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 21 - 0
services/facebody/struct_age_list.go

@@ -0,0 +1,21 @@
+package facebody
+
+//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.
+
+// AgeList is a nested struct in facebody response
+type AgeList struct {
+	Age []int `json:"Age" xml:"Age"`
+}

+ 39 - 0
services/facebody/struct_data.go

@@ -0,0 +1,39 @@
+package facebody
+
+//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.
+
+// Data is a nested struct in facebody response
+type Data struct {
+	LandmarkCount       int       `json:"LandmarkCount" xml:"LandmarkCount"`
+	Confidence          float64   `json:"Confidence" xml:"Confidence"`
+	DenseFeatureLength  int       `json:"DenseFeatureLength" xml:"DenseFeatureLength"`
+	Mask                int       `json:"Mask" xml:"Mask"`
+	FaceCount           int       `json:"FaceCount" xml:"FaceCount"`
+	FaceProbability     float64   `json:"FaceProbability" xml:"FaceProbability"`
+	FaceProbabilityList []float64 `json:"FaceProbabilityList" xml:"FaceProbabilityList"`
+	GenderList          []int     `json:"GenderList" xml:"GenderList"`
+	FaceRectangles      []int     `json:"FaceRectangles" xml:"FaceRectangles"`
+	PoseList            []float64 `json:"PoseList" xml:"PoseList"`
+	Pupils              []float64 `json:"Pupils" xml:"Pupils"`
+	Glasses             []int     `json:"Glasses" xml:"Glasses"`
+	Expressions         []int     `json:"Expressions" xml:"Expressions"`
+	RectAList           []int     `json:"RectAList" xml:"RectAList"`
+	RectBList           []int     `json:"RectBList" xml:"RectBList"`
+	AgeList             []int     `json:"AgeList" xml:"AgeList"`
+	Thresholds          []float64 `json:"Thresholds" xml:"Thresholds"`
+	DenseFeatures       []string  `json:"DenseFeatures" xml:"DenseFeatures"`
+	Landmarks           []float64 `json:"Landmarks" xml:"Landmarks"`
+}

+ 21 - 0
services/facebody/struct_dense_features.go

@@ -0,0 +1,21 @@
+package facebody
+
+//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.
+
+// DenseFeatures is a nested struct in facebody response
+type DenseFeatures struct {
+	DenseFeature []string `json:"DenseFeature" xml:"DenseFeature"`
+}

+ 21 - 0
services/facebody/struct_expressions.go

@@ -0,0 +1,21 @@
+package facebody
+
+//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.
+
+// Expressions is a nested struct in facebody response
+type Expressions struct {
+	Expression []int `json:"Expression" xml:"Expression"`
+}

+ 21 - 0
services/facebody/struct_face_probability_list_in_detect_face.go

@@ -0,0 +1,21 @@
+package facebody
+
+//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.
+
+// FaceProbabilityListInDetectFace is a nested struct in facebody response
+type FaceProbabilityListInDetectFace struct {
+	FaceProbability []float64 `json:"FaceProbability" xml:"FaceProbability"`
+}

+ 21 - 0
services/facebody/struct_face_probability_list_in_recognize_face.go

@@ -0,0 +1,21 @@
+package facebody
+
+//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.
+
+// FaceProbabilityListInRecognizeFace is a nested struct in facebody response
+type FaceProbabilityListInRecognizeFace struct {
+	FaceProbability []float64 `json:"FaceProbability" xml:"FaceProbability"`
+}

+ 21 - 0
services/facebody/struct_face_rectangles_in_detect_face.go

@@ -0,0 +1,21 @@
+package facebody
+
+//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.
+
+// FaceRectanglesInDetectFace is a nested struct in facebody response
+type FaceRectanglesInDetectFace struct {
+	FaceRectangle []int `json:"FaceRectangle" xml:"FaceRectangle"`
+}

+ 21 - 0
services/facebody/struct_face_rectangles_in_recognize_face.go

@@ -0,0 +1,21 @@
+package facebody
+
+//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.
+
+// FaceRectanglesInRecognizeFace is a nested struct in facebody response
+type FaceRectanglesInRecognizeFace struct {
+	FaceRectangle []int `json:"FaceRectangle" xml:"FaceRectangle"`
+}

+ 21 - 0
services/facebody/struct_gender_list.go

@@ -0,0 +1,21 @@
+package facebody
+
+//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.
+
+// GenderList is a nested struct in facebody response
+type GenderList struct {
+	Gender []int `json:"Gender" xml:"Gender"`
+}

+ 21 - 0
services/facebody/struct_glasses.go

@@ -0,0 +1,21 @@
+package facebody
+
+//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.
+
+// Glasses is a nested struct in facebody response
+type Glasses struct {
+	Glass []int `json:"Glass" xml:"Glass"`
+}

+ 21 - 0
services/facebody/struct_landmarks_in_detect_face.go

@@ -0,0 +1,21 @@
+package facebody
+
+//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.
+
+// LandmarksInDetectFace is a nested struct in facebody response
+type LandmarksInDetectFace struct {
+	Landmark []float64 `json:"Landmark" xml:"Landmark"`
+}

+ 21 - 0
services/facebody/struct_landmarks_in_recognize_face.go

@@ -0,0 +1,21 @@
+package facebody
+
+//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.
+
+// LandmarksInRecognizeFace is a nested struct in facebody response
+type LandmarksInRecognizeFace struct {
+	Landmark []float64 `json:"Landmark" xml:"Landmark"`
+}

+ 21 - 0
services/facebody/struct_pose_list_in_detect_face.go

@@ -0,0 +1,21 @@
+package facebody
+
+//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.
+
+// PoseListInDetectFace is a nested struct in facebody response
+type PoseListInDetectFace struct {
+	Pose []float64 `json:"Pose" xml:"Pose"`
+}

+ 21 - 0
services/facebody/struct_pose_list_in_recognize_face.go

@@ -0,0 +1,21 @@
+package facebody
+
+//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.
+
+// PoseListInRecognizeFace is a nested struct in facebody response
+type PoseListInRecognizeFace struct {
+	Pose []float64 `json:"Pose" xml:"Pose"`
+}

+ 21 - 0
services/facebody/struct_pupils_in_detect_face.go

@@ -0,0 +1,21 @@
+package facebody
+
+//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.
+
+// PupilsInDetectFace is a nested struct in facebody response
+type PupilsInDetectFace struct {
+	Pupil []float64 `json:"Pupil" xml:"Pupil"`
+}

+ 21 - 0
services/facebody/struct_pupils_in_recognize_face.go

@@ -0,0 +1,21 @@
+package facebody
+
+//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.
+
+// PupilsInRecognizeFace is a nested struct in facebody response
+type PupilsInRecognizeFace struct {
+	Pupil []float64 `json:"Pupil" xml:"Pupil"`
+}

+ 21 - 0
services/facebody/struct_rect_a_list.go

@@ -0,0 +1,21 @@
+package facebody
+
+//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.
+
+// RectAList is a nested struct in facebody response
+type RectAList struct {
+	RectA []int `json:"RectA" xml:"RectA"`
+}

+ 21 - 0
services/facebody/struct_rect_b_list.go

@@ -0,0 +1,21 @@
+package facebody
+
+//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.
+
+// RectBList is a nested struct in facebody response
+type RectBList struct {
+	RectB []int `json:"RectB" xml:"RectB"`
+}

+ 21 - 0
services/facebody/struct_thresholds.go

@@ -0,0 +1,21 @@
+package facebody
+
+//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.
+
+// Thresholds is a nested struct in facebody response
+type Thresholds struct {
+	Threshold []float64 `json:"Threshold" xml:"Threshold"`
+}