goodstech

package
v1.62.345 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointMap map[string]string

EndpointMap Endpoint Data

View Source
var EndpointType = "regional"

EndpointType regional or central

Functions

func GetEndpointMap

func GetEndpointMap() map[string]string

GetEndpointMap Get Endpoint Data Map

func GetEndpointType

func GetEndpointType() string

GetEndpointType Get Endpoint Type Value

func SetClientProperty

func SetClientProperty(client *Client, propertyName string, propertyValue interface{})

SetClientProperty Set Property by Reflect

func SetEndpointDataToClient

func SetEndpointDataToClient(client *Client)

SetEndpointDataToClient Set EndpointMap and ENdpointType

Types

type Categories

type Categories struct {
	Category []Category `json:"Category" xml:"Category"`
}

Categories is a nested struct in goodstech response

type Category

type Category struct {
	Score        float64 `json:"Score" xml:"Score"`
	CategoryName string  `json:"CategoryName" xml:"CategoryName"`
	CategoryId   string  `json:"CategoryId" xml:"CategoryId"`
}

Category is a nested struct in goodstech response

type ClassifyCommodityRequest

type ClassifyCommodityRequest struct {
	*requests.RpcRequest
	ImageURL string `position:"Query" name:"ImageURL"`
}

ClassifyCommodityRequest is the request struct for api ClassifyCommodity

func CreateClassifyCommodityRequest

func CreateClassifyCommodityRequest() (request *ClassifyCommodityRequest)

CreateClassifyCommodityRequest creates a request to invoke ClassifyCommodity API

type ClassifyCommodityResponse

type ClassifyCommodityResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

ClassifyCommodityResponse is the response struct for api ClassifyCommodity

func CreateClassifyCommodityResponse

func CreateClassifyCommodityResponse() (response *ClassifyCommodityResponse)

CreateClassifyCommodityResponse creates a response to parse from ClassifyCommodity response

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

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 NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

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 NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client

func NewClientWithProvider

func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)

NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

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 NewClientWithRamRoleArnAndPolicy

func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)

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 NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

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 NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

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 (*Client) ClassifyCommodity

func (client *Client) ClassifyCommodity(request *ClassifyCommodityRequest) (response *ClassifyCommodityResponse, err error)

ClassifyCommodity invokes the goodstech.ClassifyCommodity API synchronously

func (*Client) ClassifyCommodityWithCallback

func (client *Client) ClassifyCommodityWithCallback(request *ClassifyCommodityRequest, callback func(response *ClassifyCommodityResponse, err error)) <-chan int

ClassifyCommodityWithCallback invokes the goodstech.ClassifyCommodity API asynchronously

func (*Client) ClassifyCommodityWithChan

func (client *Client) ClassifyCommodityWithChan(request *ClassifyCommodityRequest) (<-chan *ClassifyCommodityResponse, <-chan error)

ClassifyCommodityWithChan invokes the goodstech.ClassifyCommodity API asynchronously

func (*Client) RecognizeFurnitureAttribute

func (client *Client) RecognizeFurnitureAttribute(request *RecognizeFurnitureAttributeRequest) (response *RecognizeFurnitureAttributeResponse, err error)

RecognizeFurnitureAttribute invokes the goodstech.RecognizeFurnitureAttribute API synchronously

func (*Client) RecognizeFurnitureAttributeWithCallback

func (client *Client) RecognizeFurnitureAttributeWithCallback(request *RecognizeFurnitureAttributeRequest, callback func(response *RecognizeFurnitureAttributeResponse, err error)) <-chan int

RecognizeFurnitureAttributeWithCallback invokes the goodstech.RecognizeFurnitureAttribute API asynchronously

func (*Client) RecognizeFurnitureAttributeWithChan

func (client *Client) RecognizeFurnitureAttributeWithChan(request *RecognizeFurnitureAttributeRequest) (<-chan *RecognizeFurnitureAttributeResponse, <-chan error)

RecognizeFurnitureAttributeWithChan invokes the goodstech.RecognizeFurnitureAttribute API asynchronously

func (*Client) RecognizeFurnitureSpu

func (client *Client) RecognizeFurnitureSpu(request *RecognizeFurnitureSpuRequest) (response *RecognizeFurnitureSpuResponse, err error)

RecognizeFurnitureSpu invokes the goodstech.RecognizeFurnitureSpu API synchronously

func (*Client) RecognizeFurnitureSpuWithCallback

func (client *Client) RecognizeFurnitureSpuWithCallback(request *RecognizeFurnitureSpuRequest, callback func(response *RecognizeFurnitureSpuResponse, err error)) <-chan int

RecognizeFurnitureSpuWithCallback invokes the goodstech.RecognizeFurnitureSpu API asynchronously

func (*Client) RecognizeFurnitureSpuWithChan

func (client *Client) RecognizeFurnitureSpuWithChan(request *RecognizeFurnitureSpuRequest) (<-chan *RecognizeFurnitureSpuResponse, <-chan error)

RecognizeFurnitureSpuWithChan invokes the goodstech.RecognizeFurnitureSpu API asynchronously

type Data

type Data struct {
	PredStyle       string     `json:"PredStyle" xml:"PredStyle"`
	PredCateId      string     `json:"PredCateId" xml:"PredCateId"`
	PredStyleId     string     `json:"PredStyleId" xml:"PredStyleId"`
	PredProbability float64    `json:"PredProbability" xml:"PredProbability"`
	PredCate        string     `json:"PredCate" xml:"PredCate"`
	Categories      []Category `json:"Categories" xml:"Categories"`
}

Data is a nested struct in goodstech response

type RecognizeFurnitureAttributeRequest

type RecognizeFurnitureAttributeRequest struct {
	*requests.RpcRequest
	ImageURL string `position:"Body" name:"ImageURL"`
}

RecognizeFurnitureAttributeRequest is the request struct for api RecognizeFurnitureAttribute

func CreateRecognizeFurnitureAttributeRequest

func CreateRecognizeFurnitureAttributeRequest() (request *RecognizeFurnitureAttributeRequest)

CreateRecognizeFurnitureAttributeRequest creates a request to invoke RecognizeFurnitureAttribute API

type RecognizeFurnitureAttributeResponse

type RecognizeFurnitureAttributeResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

RecognizeFurnitureAttributeResponse is the response struct for api RecognizeFurnitureAttribute

func CreateRecognizeFurnitureAttributeResponse

func CreateRecognizeFurnitureAttributeResponse() (response *RecognizeFurnitureAttributeResponse)

CreateRecognizeFurnitureAttributeResponse creates a response to parse from RecognizeFurnitureAttribute response

type RecognizeFurnitureSpuRequest

type RecognizeFurnitureSpuRequest struct {
	*requests.RpcRequest
	XLength  requests.Float `position:"Body" name:"XLength"`
	ZLength  requests.Float `position:"Body" name:"ZLength"`
	ImageURL string         `position:"Body" name:"ImageURL"`
	YLength  requests.Float `position:"Body" name:"YLength"`
}

RecognizeFurnitureSpuRequest is the request struct for api RecognizeFurnitureSpu

func CreateRecognizeFurnitureSpuRequest

func CreateRecognizeFurnitureSpuRequest() (request *RecognizeFurnitureSpuRequest)

CreateRecognizeFurnitureSpuRequest creates a request to invoke RecognizeFurnitureSpu API

type RecognizeFurnitureSpuResponse

type RecognizeFurnitureSpuResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

RecognizeFurnitureSpuResponse is the response struct for api RecognizeFurnitureSpu

func CreateRecognizeFurnitureSpuResponse

func CreateRecognizeFurnitureSpuResponse() (response *RecognizeFurnitureSpuResponse)

CreateRecognizeFurnitureSpuResponse creates a response to parse from RecognizeFurnitureSpu response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL