alimt

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 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 CertificateTranslateItemDTO

type CertificateTranslateItemDTO struct {
	KeyTranslation   string `json:"KeyTranslation" xml:"KeyTranslation"`
	Key              string `json:"Key" xml:"Key"`
	Value            string `json:"Value" xml:"Value"`
	ValueTranslation string `json:"ValueTranslation" xml:"ValueTranslation"`
}

CertificateTranslateItemDTO is a nested struct in alimt 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) CreateDocTranslateTask

func (client *Client) CreateDocTranslateTask(request *CreateDocTranslateTaskRequest) (response *CreateDocTranslateTaskResponse, err error)

CreateDocTranslateTask invokes the alimt.CreateDocTranslateTask API synchronously

func (*Client) CreateDocTranslateTaskWithCallback

func (client *Client) CreateDocTranslateTaskWithCallback(request *CreateDocTranslateTaskRequest, callback func(response *CreateDocTranslateTaskResponse, err error)) <-chan int

CreateDocTranslateTaskWithCallback invokes the alimt.CreateDocTranslateTask API asynchronously

func (*Client) CreateDocTranslateTaskWithChan

func (client *Client) CreateDocTranslateTaskWithChan(request *CreateDocTranslateTaskRequest) (<-chan *CreateDocTranslateTaskResponse, <-chan error)

CreateDocTranslateTaskWithChan invokes the alimt.CreateDocTranslateTask API asynchronously

func (*Client) CreateImageTranslateTask

func (client *Client) CreateImageTranslateTask(request *CreateImageTranslateTaskRequest) (response *CreateImageTranslateTaskResponse, err error)

CreateImageTranslateTask invokes the alimt.CreateImageTranslateTask API synchronously

func (*Client) CreateImageTranslateTaskWithCallback

func (client *Client) CreateImageTranslateTaskWithCallback(request *CreateImageTranslateTaskRequest, callback func(response *CreateImageTranslateTaskResponse, err error)) <-chan int

CreateImageTranslateTaskWithCallback invokes the alimt.CreateImageTranslateTask API asynchronously

func (*Client) CreateImageTranslateTaskWithChan

func (client *Client) CreateImageTranslateTaskWithChan(request *CreateImageTranslateTaskRequest) (<-chan *CreateImageTranslateTaskResponse, <-chan error)

CreateImageTranslateTaskWithChan invokes the alimt.CreateImageTranslateTask API asynchronously

func (*Client) GetBatchTranslate

func (client *Client) GetBatchTranslate(request *GetBatchTranslateRequest) (response *GetBatchTranslateResponse, err error)

GetBatchTranslate invokes the alimt.GetBatchTranslate API synchronously

func (*Client) GetBatchTranslateWithCallback

func (client *Client) GetBatchTranslateWithCallback(request *GetBatchTranslateRequest, callback func(response *GetBatchTranslateResponse, err error)) <-chan int

GetBatchTranslateWithCallback invokes the alimt.GetBatchTranslate API asynchronously

func (*Client) GetBatchTranslateWithChan

func (client *Client) GetBatchTranslateWithChan(request *GetBatchTranslateRequest) (<-chan *GetBatchTranslateResponse, <-chan error)

GetBatchTranslateWithChan invokes the alimt.GetBatchTranslate API asynchronously

func (*Client) GetDetectLanguage

func (client *Client) GetDetectLanguage(request *GetDetectLanguageRequest) (response *GetDetectLanguageResponse, err error)

GetDetectLanguage invokes the alimt.GetDetectLanguage API synchronously

func (*Client) GetDetectLanguageWithCallback

func (client *Client) GetDetectLanguageWithCallback(request *GetDetectLanguageRequest, callback func(response *GetDetectLanguageResponse, err error)) <-chan int

GetDetectLanguageWithCallback invokes the alimt.GetDetectLanguage API asynchronously

func (*Client) GetDetectLanguageWithChan

func (client *Client) GetDetectLanguageWithChan(request *GetDetectLanguageRequest) (<-chan *GetDetectLanguageResponse, <-chan error)

GetDetectLanguageWithChan invokes the alimt.GetDetectLanguage API asynchronously

func (*Client) GetDocTranslateTask

func (client *Client) GetDocTranslateTask(request *GetDocTranslateTaskRequest) (response *GetDocTranslateTaskResponse, err error)

GetDocTranslateTask invokes the alimt.GetDocTranslateTask API synchronously

func (*Client) GetDocTranslateTaskWithCallback

func (client *Client) GetDocTranslateTaskWithCallback(request *GetDocTranslateTaskRequest, callback func(response *GetDocTranslateTaskResponse, err error)) <-chan int

GetDocTranslateTaskWithCallback invokes the alimt.GetDocTranslateTask API asynchronously

func (*Client) GetDocTranslateTaskWithChan

func (client *Client) GetDocTranslateTaskWithChan(request *GetDocTranslateTaskRequest) (<-chan *GetDocTranslateTaskResponse, <-chan error)

GetDocTranslateTaskWithChan invokes the alimt.GetDocTranslateTask API asynchronously

func (*Client) GetImageDiagnose

func (client *Client) GetImageDiagnose(request *GetImageDiagnoseRequest) (response *GetImageDiagnoseResponse, err error)

GetImageDiagnose invokes the alimt.GetImageDiagnose API synchronously

func (*Client) GetImageDiagnoseWithCallback

func (client *Client) GetImageDiagnoseWithCallback(request *GetImageDiagnoseRequest, callback func(response *GetImageDiagnoseResponse, err error)) <-chan int

GetImageDiagnoseWithCallback invokes the alimt.GetImageDiagnose API asynchronously

func (*Client) GetImageDiagnoseWithChan

func (client *Client) GetImageDiagnoseWithChan(request *GetImageDiagnoseRequest) (<-chan *GetImageDiagnoseResponse, <-chan error)

GetImageDiagnoseWithChan invokes the alimt.GetImageDiagnose API asynchronously

func (*Client) GetImageTranslate

func (client *Client) GetImageTranslate(request *GetImageTranslateRequest) (response *GetImageTranslateResponse, err error)

GetImageTranslate invokes the alimt.GetImageTranslate API synchronously

func (*Client) GetImageTranslateTask

func (client *Client) GetImageTranslateTask(request *GetImageTranslateTaskRequest) (response *GetImageTranslateTaskResponse, err error)

GetImageTranslateTask invokes the alimt.GetImageTranslateTask API synchronously

func (*Client) GetImageTranslateTaskWithCallback

func (client *Client) GetImageTranslateTaskWithCallback(request *GetImageTranslateTaskRequest, callback func(response *GetImageTranslateTaskResponse, err error)) <-chan int

GetImageTranslateTaskWithCallback invokes the alimt.GetImageTranslateTask API asynchronously

func (*Client) GetImageTranslateTaskWithChan

func (client *Client) GetImageTranslateTaskWithChan(request *GetImageTranslateTaskRequest) (<-chan *GetImageTranslateTaskResponse, <-chan error)

GetImageTranslateTaskWithChan invokes the alimt.GetImageTranslateTask API asynchronously

func (*Client) GetImageTranslateWithCallback

func (client *Client) GetImageTranslateWithCallback(request *GetImageTranslateRequest, callback func(response *GetImageTranslateResponse, err error)) <-chan int

GetImageTranslateWithCallback invokes the alimt.GetImageTranslate API asynchronously

func (*Client) GetImageTranslateWithChan

func (client *Client) GetImageTranslateWithChan(request *GetImageTranslateRequest) (<-chan *GetImageTranslateResponse, <-chan error)

GetImageTranslateWithChan invokes the alimt.GetImageTranslate API asynchronously

func (*Client) GetTitleDiagnose

func (client *Client) GetTitleDiagnose(request *GetTitleDiagnoseRequest) (response *GetTitleDiagnoseResponse, err error)

GetTitleDiagnose invokes the alimt.GetTitleDiagnose API synchronously

func (*Client) GetTitleDiagnoseWithCallback

func (client *Client) GetTitleDiagnoseWithCallback(request *GetTitleDiagnoseRequest, callback func(response *GetTitleDiagnoseResponse, err error)) <-chan int

GetTitleDiagnoseWithCallback invokes the alimt.GetTitleDiagnose API asynchronously

func (*Client) GetTitleDiagnoseWithChan

func (client *Client) GetTitleDiagnoseWithChan(request *GetTitleDiagnoseRequest) (<-chan *GetTitleDiagnoseResponse, <-chan error)

GetTitleDiagnoseWithChan invokes the alimt.GetTitleDiagnose API asynchronously

func (*Client) GetTitleGenerate

func (client *Client) GetTitleGenerate(request *GetTitleGenerateRequest) (response *GetTitleGenerateResponse, err error)

GetTitleGenerate invokes the alimt.GetTitleGenerate API synchronously

func (*Client) GetTitleGenerateWithCallback

func (client *Client) GetTitleGenerateWithCallback(request *GetTitleGenerateRequest, callback func(response *GetTitleGenerateResponse, err error)) <-chan int

GetTitleGenerateWithCallback invokes the alimt.GetTitleGenerate API asynchronously

func (*Client) GetTitleGenerateWithChan

func (client *Client) GetTitleGenerateWithChan(request *GetTitleGenerateRequest) (<-chan *GetTitleGenerateResponse, <-chan error)

GetTitleGenerateWithChan invokes the alimt.GetTitleGenerate API asynchronously

func (*Client) GetTitleIntelligence

func (client *Client) GetTitleIntelligence(request *GetTitleIntelligenceRequest) (response *GetTitleIntelligenceResponse, err error)

GetTitleIntelligence invokes the alimt.GetTitleIntelligence API synchronously

func (*Client) GetTitleIntelligenceWithCallback

func (client *Client) GetTitleIntelligenceWithCallback(request *GetTitleIntelligenceRequest, callback func(response *GetTitleIntelligenceResponse, err error)) <-chan int

GetTitleIntelligenceWithCallback invokes the alimt.GetTitleIntelligence API asynchronously

func (*Client) GetTitleIntelligenceWithChan

func (client *Client) GetTitleIntelligenceWithChan(request *GetTitleIntelligenceRequest) (<-chan *GetTitleIntelligenceResponse, <-chan error)

GetTitleIntelligenceWithChan invokes the alimt.GetTitleIntelligence API asynchronously

func (*Client) GetTranslateReport

func (client *Client) GetTranslateReport(request *GetTranslateReportRequest) (response *GetTranslateReportResponse, err error)

GetTranslateReport invokes the alimt.GetTranslateReport API synchronously

func (*Client) GetTranslateReportWithCallback

func (client *Client) GetTranslateReportWithCallback(request *GetTranslateReportRequest, callback func(response *GetTranslateReportResponse, err error)) <-chan int

GetTranslateReportWithCallback invokes the alimt.GetTranslateReport API asynchronously

func (*Client) GetTranslateReportWithChan

func (client *Client) GetTranslateReportWithChan(request *GetTranslateReportRequest) (<-chan *GetTranslateReportResponse, <-chan error)

GetTranslateReportWithChan invokes the alimt.GetTranslateReport API asynchronously

func (*Client) GetUser

func (client *Client) GetUser(request *GetUserRequest) (response *GetUserResponse, err error)

GetUser invokes the alimt.GetUser API synchronously

func (*Client) GetUserWithCallback

func (client *Client) GetUserWithCallback(request *GetUserRequest, callback func(response *GetUserResponse, err error)) <-chan int

GetUserWithCallback invokes the alimt.GetUser API asynchronously

func (*Client) GetUserWithChan

func (client *Client) GetUserWithChan(request *GetUserRequest) (<-chan *GetUserResponse, <-chan error)

GetUserWithChan invokes the alimt.GetUser API asynchronously

func (*Client) OpenAlimtService

func (client *Client) OpenAlimtService(request *OpenAlimtServiceRequest) (response *OpenAlimtServiceResponse, err error)

OpenAlimtService invokes the alimt.OpenAlimtService API synchronously

func (*Client) OpenAlimtServiceWithCallback

func (client *Client) OpenAlimtServiceWithCallback(request *OpenAlimtServiceRequest, callback func(response *OpenAlimtServiceResponse, err error)) <-chan int

OpenAlimtServiceWithCallback invokes the alimt.OpenAlimtService API asynchronously

func (*Client) OpenAlimtServiceWithChan

func (client *Client) OpenAlimtServiceWithChan(request *OpenAlimtServiceRequest) (<-chan *OpenAlimtServiceResponse, <-chan error)

OpenAlimtServiceWithChan invokes the alimt.OpenAlimtService API asynchronously

func (*Client) Translate

func (client *Client) Translate(request *TranslateRequest) (response *TranslateResponse, err error)

Translate invokes the alimt.Translate API synchronously

func (*Client) TranslateCertificate

func (client *Client) TranslateCertificate(request *TranslateCertificateRequest) (response *TranslateCertificateResponse, err error)

TranslateCertificate invokes the alimt.TranslateCertificate API synchronously

func (*Client) TranslateCertificateWithCallback

func (client *Client) TranslateCertificateWithCallback(request *TranslateCertificateRequest, callback func(response *TranslateCertificateResponse, err error)) <-chan int

TranslateCertificateWithCallback invokes the alimt.TranslateCertificate API asynchronously

func (*Client) TranslateCertificateWithChan

func (client *Client) TranslateCertificateWithChan(request *TranslateCertificateRequest) (<-chan *TranslateCertificateResponse, <-chan error)

TranslateCertificateWithChan invokes the alimt.TranslateCertificate API asynchronously

func (*Client) TranslateECommerce

func (client *Client) TranslateECommerce(request *TranslateECommerceRequest) (response *TranslateECommerceResponse, err error)

TranslateECommerce invokes the alimt.TranslateECommerce API synchronously

func (*Client) TranslateECommerceWithCallback

func (client *Client) TranslateECommerceWithCallback(request *TranslateECommerceRequest, callback func(response *TranslateECommerceResponse, err error)) <-chan int

TranslateECommerceWithCallback invokes the alimt.TranslateECommerce API asynchronously

func (*Client) TranslateECommerceWithChan

func (client *Client) TranslateECommerceWithChan(request *TranslateECommerceRequest) (<-chan *TranslateECommerceResponse, <-chan error)

TranslateECommerceWithChan invokes the alimt.TranslateECommerce API asynchronously

func (*Client) TranslateGeneral

func (client *Client) TranslateGeneral(request *TranslateGeneralRequest) (response *TranslateGeneralResponse, err error)

TranslateGeneral invokes the alimt.TranslateGeneral API synchronously

func (*Client) TranslateGeneralWithCallback

func (client *Client) TranslateGeneralWithCallback(request *TranslateGeneralRequest, callback func(response *TranslateGeneralResponse, err error)) <-chan int

TranslateGeneralWithCallback invokes the alimt.TranslateGeneral API asynchronously

func (*Client) TranslateGeneralWithChan

func (client *Client) TranslateGeneralWithChan(request *TranslateGeneralRequest) (<-chan *TranslateGeneralResponse, <-chan error)

TranslateGeneralWithChan invokes the alimt.TranslateGeneral API asynchronously

func (*Client) TranslateImage

func (client *Client) TranslateImage(request *TranslateImageRequest) (response *TranslateImageResponse, err error)

TranslateImage invokes the alimt.TranslateImage API synchronously

func (*Client) TranslateImageWithCallback

func (client *Client) TranslateImageWithCallback(request *TranslateImageRequest, callback func(response *TranslateImageResponse, err error)) <-chan int

TranslateImageWithCallback invokes the alimt.TranslateImage API asynchronously

func (*Client) TranslateImageWithChan

func (client *Client) TranslateImageWithChan(request *TranslateImageRequest) (<-chan *TranslateImageResponse, <-chan error)

TranslateImageWithChan invokes the alimt.TranslateImage API asynchronously

func (*Client) TranslateWithCallback

func (client *Client) TranslateWithCallback(request *TranslateRequest, callback func(response *TranslateResponse, err error)) <-chan int

TranslateWithCallback invokes the alimt.Translate API asynchronously

func (*Client) TranslateWithChan

func (client *Client) TranslateWithChan(request *TranslateRequest) (<-chan *TranslateResponse, <-chan error)

TranslateWithChan invokes the alimt.Translate API asynchronously

type CreateDocTranslateTaskRequest

type CreateDocTranslateTaskRequest struct {
	*requests.RpcRequest
	SourceLanguage string `position:"Body" name:"SourceLanguage"`
	ClientToken    string `position:"Body" name:"ClientToken"`
	Scene          string `position:"Body" name:"Scene"`
	FileUrl        string `position:"Body" name:"FileUrl"`
	TargetLanguage string `position:"Body" name:"TargetLanguage"`
	CallbackUrl    string `position:"Body" name:"CallbackUrl"`
}

CreateDocTranslateTaskRequest is the request struct for api CreateDocTranslateTask

func CreateCreateDocTranslateTaskRequest

func CreateCreateDocTranslateTaskRequest() (request *CreateDocTranslateTaskRequest)

CreateCreateDocTranslateTaskRequest creates a request to invoke CreateDocTranslateTask API

type CreateDocTranslateTaskResponse

type CreateDocTranslateTaskResponse struct {
	*responses.BaseResponse
	Status    string `json:"Status" xml:"Status"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	TaskId    string `json:"TaskId" xml:"TaskId"`
}

CreateDocTranslateTaskResponse is the response struct for api CreateDocTranslateTask

func CreateCreateDocTranslateTaskResponse

func CreateCreateDocTranslateTaskResponse() (response *CreateDocTranslateTaskResponse)

CreateCreateDocTranslateTaskResponse creates a response to parse from CreateDocTranslateTask response

type CreateImageTranslateTaskRequest

type CreateImageTranslateTaskRequest struct {
	*requests.RpcRequest
	SourceLanguage string `position:"Body" name:"SourceLanguage"`
	ClientToken    string `position:"Body" name:"ClientToken"`
	UrlList        string `position:"Body" name:"UrlList"`
	Extra          string `position:"Body" name:"Extra"`
	TargetLanguage string `position:"Body" name:"TargetLanguage"`
}

CreateImageTranslateTaskRequest is the request struct for api CreateImageTranslateTask

func CreateCreateImageTranslateTaskRequest

func CreateCreateImageTranslateTaskRequest() (request *CreateImageTranslateTaskRequest)

CreateCreateImageTranslateTaskRequest creates a request to invoke CreateImageTranslateTask API

type CreateImageTranslateTaskResponse

type CreateImageTranslateTaskResponse struct {
	*responses.BaseResponse
	Code      int    `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

CreateImageTranslateTaskResponse is the response struct for api CreateImageTranslateTask

func CreateCreateImageTranslateTaskResponse

func CreateCreateImageTranslateTaskResponse() (response *CreateImageTranslateTaskResponse)

CreateCreateImageTranslateTaskResponse creates a response to parse from CreateImageTranslateTask response

type Data

type Data struct {
	Translated              string                        `json:"Translated" xml:"Translated"`
	WordSpelledCorrectError string                        `json:"WordSpelledCorrectError" xml:"WordSpelledCorrectError"`
	ContainCoreClasses      string                        `json:"ContainCoreClasses" xml:"ContainCoreClasses"`
	OverLengthLimit         string                        `json:"OverLengthLimit" xml:"OverLengthLimit"`
	Titles                  string                        `json:"Titles" xml:"Titles"`
	Language                string                        `json:"Language" xml:"Language"`
	DuplicateWords          string                        `json:"DuplicateWords" xml:"DuplicateWords"`
	NoFirstUppercaseList    string                        `json:"NoFirstUppercaseList" xml:"NoFirstUppercaseList"`
	ImageData               string                        `json:"ImageData" xml:"ImageData"`
	AllUppercaseWords       string                        `json:"AllUppercaseWords" xml:"AllUppercaseWords"`
	Url                     string                        `json:"Url" xml:"Url"`
	TemplateJson            string                        `json:"TemplateJson" xml:"TemplateJson"`
	TaskId                  string                        `json:"TaskId" xml:"TaskId"`
	LanguageQualityScore    string                        `json:"LanguageQualityScore" xml:"LanguageQualityScore"`
	InPaintingUrl           string                        `json:"InPaintingUrl" xml:"InPaintingUrl"`
	FinalImageUrl           string                        `json:"FinalImageUrl" xml:"FinalImageUrl"`
	PictureEditor           string                        `json:"PictureEditor" xml:"PictureEditor"`
	Orc                     string                        `json:"Orc" xml:"Orc"`
	WordCount               string                        `json:"WordCount" xml:"WordCount"`
	TotalScore              string                        `json:"TotalScore" xml:"TotalScore"`
	DisableWords            string                        `json:"DisableWords" xml:"DisableWords"`
	TranslatedValues        []CertificateTranslateItemDTO `json:"TranslatedValues" xml:"TranslatedValues"`
}

Data is a nested struct in alimt response

type GetBatchTranslateRequest

type GetBatchTranslateRequest struct {
	*requests.RpcRequest
	SourceLanguage string `position:"Body" name:"SourceLanguage"`
	SourceText     string `position:"Body" name:"SourceText"`
	FormatType     string `position:"Body" name:"FormatType"`
	ApiType        string `position:"Body" name:"ApiType"`
	Scene          string `position:"Body" name:"Scene"`
	TargetLanguage string `position:"Body" name:"TargetLanguage"`
}

GetBatchTranslateRequest is the request struct for api GetBatchTranslate

func CreateGetBatchTranslateRequest

func CreateGetBatchTranslateRequest() (request *GetBatchTranslateRequest)

CreateGetBatchTranslateRequest creates a request to invoke GetBatchTranslate API

type GetBatchTranslateResponse

type GetBatchTranslateResponse struct {
	*responses.BaseResponse
	Code           int                      `json:"Code" xml:"Code"`
	Message        string                   `json:"Message" xml:"Message"`
	RequestId      string                   `json:"RequestId" xml:"RequestId"`
	TranslatedList []map[string]interface{} `json:"TranslatedList" xml:"TranslatedList"`
}

GetBatchTranslateResponse is the response struct for api GetBatchTranslate

func CreateGetBatchTranslateResponse

func CreateGetBatchTranslateResponse() (response *GetBatchTranslateResponse)

CreateGetBatchTranslateResponse creates a response to parse from GetBatchTranslate response

type GetDetectLanguageRequest

type GetDetectLanguageRequest struct {
	*requests.RpcRequest
	SourceText string `position:"Body" name:"SourceText"`
}

GetDetectLanguageRequest is the request struct for api GetDetectLanguage

func CreateGetDetectLanguageRequest

func CreateGetDetectLanguageRequest() (request *GetDetectLanguageRequest)

CreateGetDetectLanguageRequest creates a request to invoke GetDetectLanguage API

type GetDetectLanguageResponse

type GetDetectLanguageResponse struct {
	*responses.BaseResponse
	DetectedLanguage string `json:"DetectedLanguage" xml:"DetectedLanguage"`
	RequestId        string `json:"RequestId" xml:"RequestId"`
}

GetDetectLanguageResponse is the response struct for api GetDetectLanguage

func CreateGetDetectLanguageResponse

func CreateGetDetectLanguageResponse() (response *GetDetectLanguageResponse)

CreateGetDetectLanguageResponse creates a response to parse from GetDetectLanguage response

type GetDocTranslateTaskRequest

type GetDocTranslateTaskRequest struct {
	*requests.RpcRequest
	TaskId string `position:"Query" name:"TaskId"`
}

GetDocTranslateTaskRequest is the request struct for api GetDocTranslateTask

func CreateGetDocTranslateTaskRequest

func CreateGetDocTranslateTaskRequest() (request *GetDocTranslateTaskRequest)

CreateGetDocTranslateTaskRequest creates a request to invoke GetDocTranslateTask API

type GetDocTranslateTaskResponse

type GetDocTranslateTaskResponse struct {
	*responses.BaseResponse
	Status                string `json:"Status" xml:"Status"`
	RequestId             string `json:"RequestId" xml:"RequestId"`
	TranslateFileUrl      string `json:"TranslateFileUrl" xml:"TranslateFileUrl"`
	TranslateErrorCode    string `json:"TranslateErrorCode" xml:"TranslateErrorCode"`
	PageCount             int    `json:"PageCount" xml:"PageCount"`
	TaskId                string `json:"TaskId" xml:"TaskId"`
	TranslateErrorMessage string `json:"TranslateErrorMessage" xml:"TranslateErrorMessage"`
}

GetDocTranslateTaskResponse is the response struct for api GetDocTranslateTask

func CreateGetDocTranslateTaskResponse

func CreateGetDocTranslateTaskResponse() (response *GetDocTranslateTaskResponse)

CreateGetDocTranslateTaskResponse creates a response to parse from GetDocTranslateTask response

type GetImageDiagnoseRequest

type GetImageDiagnoseRequest struct {
	*requests.RpcRequest
	Url   string `position:"Body" name:"Url"`
	Extra string `position:"Body" name:"Extra"`
}

GetImageDiagnoseRequest is the request struct for api GetImageDiagnose

func CreateGetImageDiagnoseRequest

func CreateGetImageDiagnoseRequest() (request *GetImageDiagnoseRequest)

CreateGetImageDiagnoseRequest creates a request to invoke GetImageDiagnose API

type GetImageDiagnoseResponse

type GetImageDiagnoseResponse struct {
	*responses.BaseResponse
	Code      int    `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

GetImageDiagnoseResponse is the response struct for api GetImageDiagnose

func CreateGetImageDiagnoseResponse

func CreateGetImageDiagnoseResponse() (response *GetImageDiagnoseResponse)

CreateGetImageDiagnoseResponse creates a response to parse from GetImageDiagnose response

type GetImageTranslateRequest

type GetImageTranslateRequest struct {
	*requests.RpcRequest
	SourceLanguage string `position:"Body" name:"SourceLanguage"`
	Url            string `position:"Body" name:"Url"`
	Extra          string `position:"Body" name:"Extra"`
	TargetLanguage string `position:"Body" name:"TargetLanguage"`
}

GetImageTranslateRequest is the request struct for api GetImageTranslate

func CreateGetImageTranslateRequest

func CreateGetImageTranslateRequest() (request *GetImageTranslateRequest)

CreateGetImageTranslateRequest creates a request to invoke GetImageTranslate API

type GetImageTranslateResponse

type GetImageTranslateResponse struct {
	*responses.BaseResponse
	Code      int    `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

GetImageTranslateResponse is the response struct for api GetImageTranslate

func CreateGetImageTranslateResponse

func CreateGetImageTranslateResponse() (response *GetImageTranslateResponse)

CreateGetImageTranslateResponse creates a response to parse from GetImageTranslate response

type GetImageTranslateTaskRequest

type GetImageTranslateTaskRequest struct {
	*requests.RpcRequest
	TaskId string `position:"Body" name:"TaskId"`
}

GetImageTranslateTaskRequest is the request struct for api GetImageTranslateTask

func CreateGetImageTranslateTaskRequest

func CreateGetImageTranslateTaskRequest() (request *GetImageTranslateTaskRequest)

CreateGetImageTranslateTaskRequest creates a request to invoke GetImageTranslateTask API

type GetImageTranslateTaskResponse

type GetImageTranslateTaskResponse struct {
	*responses.BaseResponse
	Code      int    `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

GetImageTranslateTaskResponse is the response struct for api GetImageTranslateTask

func CreateGetImageTranslateTaskResponse

func CreateGetImageTranslateTaskResponse() (response *GetImageTranslateTaskResponse)

CreateGetImageTranslateTaskResponse creates a response to parse from GetImageTranslateTask response

type GetTitleDiagnoseRequest

type GetTitleDiagnoseRequest struct {
	*requests.RpcRequest
	Language   string `position:"Body" name:"Language"`
	Title      string `position:"Body" name:"Title"`
	Platform   string `position:"Body" name:"Platform"`
	Extra      string `position:"Body" name:"Extra"`
	CategoryId string `position:"Body" name:"CategoryId"`
}

GetTitleDiagnoseRequest is the request struct for api GetTitleDiagnose

func CreateGetTitleDiagnoseRequest

func CreateGetTitleDiagnoseRequest() (request *GetTitleDiagnoseRequest)

CreateGetTitleDiagnoseRequest creates a request to invoke GetTitleDiagnose API

type GetTitleDiagnoseResponse

type GetTitleDiagnoseResponse struct {
	*responses.BaseResponse
	Code      int    `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

GetTitleDiagnoseResponse is the response struct for api GetTitleDiagnose

func CreateGetTitleDiagnoseResponse

func CreateGetTitleDiagnoseResponse() (response *GetTitleDiagnoseResponse)

CreateGetTitleDiagnoseResponse creates a response to parse from GetTitleDiagnose response

type GetTitleGenerateRequest

type GetTitleGenerateRequest struct {
	*requests.RpcRequest
	Language   string `position:"Body" name:"Language"`
	Title      string `position:"Body" name:"Title"`
	Platform   string `position:"Body" name:"Platform"`
	Extra      string `position:"Body" name:"Extra"`
	Attributes string `position:"Body" name:"Attributes"`
	HotWords   string `position:"Body" name:"HotWords"`
	CategoryId string `position:"Body" name:"CategoryId"`
}

GetTitleGenerateRequest is the request struct for api GetTitleGenerate

func CreateGetTitleGenerateRequest

func CreateGetTitleGenerateRequest() (request *GetTitleGenerateRequest)

CreateGetTitleGenerateRequest creates a request to invoke GetTitleGenerate API

type GetTitleGenerateResponse

type GetTitleGenerateResponse struct {
	*responses.BaseResponse
	Code      int    `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

GetTitleGenerateResponse is the response struct for api GetTitleGenerate

func CreateGetTitleGenerateResponse

func CreateGetTitleGenerateResponse() (response *GetTitleGenerateResponse)

CreateGetTitleGenerateResponse creates a response to parse from GetTitleGenerate response

type GetTitleIntelligenceRequest

type GetTitleIntelligenceRequest struct {
	*requests.RpcRequest
	CatLevelThreeId requests.Integer `position:"Body" name:"CatLevelThreeId"`
	CatLevelTwoId   requests.Integer `position:"Body" name:"CatLevelTwoId"`
	Keywords        string           `position:"Body" name:"Keywords"`
	Platform        string           `position:"Body" name:"Platform"`
	Extra           string           `position:"Body" name:"Extra"`
}

GetTitleIntelligenceRequest is the request struct for api GetTitleIntelligence

func CreateGetTitleIntelligenceRequest

func CreateGetTitleIntelligenceRequest() (request *GetTitleIntelligenceRequest)

CreateGetTitleIntelligenceRequest creates a request to invoke GetTitleIntelligence API

type GetTitleIntelligenceResponse

type GetTitleIntelligenceResponse struct {
	*responses.BaseResponse
	Code      int    `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

GetTitleIntelligenceResponse is the response struct for api GetTitleIntelligence

func CreateGetTitleIntelligenceResponse

func CreateGetTitleIntelligenceResponse() (response *GetTitleIntelligenceResponse)

CreateGetTitleIntelligenceResponse creates a response to parse from GetTitleIntelligence response

type GetTranslateReportRequest

type GetTranslateReportRequest struct {
	*requests.RpcRequest
	EndTime   string `position:"Query" name:"EndTime"`
	BeginTime string `position:"Query" name:"BeginTime"`
	ApiName   string `position:"Query" name:"ApiName"`
	Group     string `position:"Query" name:"Group"`
}

GetTranslateReportRequest is the request struct for api GetTranslateReport

func CreateGetTranslateReportRequest

func CreateGetTranslateReportRequest() (request *GetTranslateReportRequest)

CreateGetTranslateReportRequest creates a request to invoke GetTranslateReport API

type GetTranslateReportResponse

type GetTranslateReportResponse struct {
	*responses.BaseResponse
	Code      int    `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      string `json:"Data" xml:"Data"`
	RequestId string `json:"RequestId" xml:"RequestId"`
}

GetTranslateReportResponse is the response struct for api GetTranslateReport

func CreateGetTranslateReportResponse

func CreateGetTranslateReportResponse() (response *GetTranslateReportResponse)

CreateGetTranslateReportResponse creates a response to parse from GetTranslateReport response

type GetUserRequest

type GetUserRequest struct {
	*requests.RpcRequest
}

GetUserRequest is the request struct for api GetUser

func CreateGetUserRequest

func CreateGetUserRequest() (request *GetUserRequest)

CreateGetUserRequest creates a request to invoke GetUser API

type GetUserResponse

type GetUserResponse struct {
	*responses.BaseResponse
	Code      int    `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      string `json:"Data" xml:"Data"`
	RequestId string `json:"RequestId" xml:"RequestId"`
}

GetUserResponse is the response struct for api GetUser

func CreateGetUserResponse

func CreateGetUserResponse() (response *GetUserResponse)

CreateGetUserResponse creates a response to parse from GetUser response

type OpenAlimtServiceRequest

type OpenAlimtServiceRequest struct {
	*requests.RpcRequest
	OwnerId requests.Integer `position:"Query" name:"OwnerId"`
	Type    string           `position:"Query" name:"Type"`
}

OpenAlimtServiceRequest is the request struct for api OpenAlimtService

func CreateOpenAlimtServiceRequest

func CreateOpenAlimtServiceRequest() (request *OpenAlimtServiceRequest)

CreateOpenAlimtServiceRequest creates a request to invoke OpenAlimtService API

type OpenAlimtServiceResponse

type OpenAlimtServiceResponse struct {
	*responses.BaseResponse
	OrderId   string `json:"OrderId" xml:"OrderId"`
	RequestId string `json:"RequestId" xml:"RequestId"`
}

OpenAlimtServiceResponse is the response struct for api OpenAlimtService

func CreateOpenAlimtServiceResponse

func CreateOpenAlimtServiceResponse() (response *OpenAlimtServiceResponse)

CreateOpenAlimtServiceResponse creates a response to parse from OpenAlimtService response

type TranslateCertificateRequest

type TranslateCertificateRequest struct {
	*requests.RpcRequest
	Ext             string `position:"Body" name:"Ext"`
	SourceLanguage  string `position:"Body" name:"SourceLanguage"`
	CertificateType string `position:"Body" name:"CertificateType"`
	ResultType      string `position:"Body" name:"ResultType"`
	ImageUrl        string `position:"Body" name:"ImageUrl"`
	TargetLanguage  string `position:"Body" name:"TargetLanguage"`
}

TranslateCertificateRequest is the request struct for api TranslateCertificate

func CreateTranslateCertificateRequest

func CreateTranslateCertificateRequest() (request *TranslateCertificateRequest)

CreateTranslateCertificateRequest creates a request to invoke TranslateCertificate API

type TranslateCertificateResponse

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

TranslateCertificateResponse is the response struct for api TranslateCertificate

func CreateTranslateCertificateResponse

func CreateTranslateCertificateResponse() (response *TranslateCertificateResponse)

CreateTranslateCertificateResponse creates a response to parse from TranslateCertificate response

type TranslateECommerceRequest

type TranslateECommerceRequest struct {
	*requests.RpcRequest
	SourceLanguage string `position:"Body" name:"SourceLanguage"`
	SourceText     string `position:"Body" name:"SourceText"`
	FormatType     string `position:"Body" name:"FormatType"`
	Scene          string `position:"Body" name:"Scene"`
	TargetLanguage string `position:"Body" name:"TargetLanguage"`
}

TranslateECommerceRequest is the request struct for api TranslateECommerce

func CreateTranslateECommerceRequest

func CreateTranslateECommerceRequest() (request *TranslateECommerceRequest)

CreateTranslateECommerceRequest creates a request to invoke TranslateECommerce API

type TranslateECommerceResponse

type TranslateECommerceResponse struct {
	*responses.BaseResponse
	Code      int    `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

TranslateECommerceResponse is the response struct for api TranslateECommerce

func CreateTranslateECommerceResponse

func CreateTranslateECommerceResponse() (response *TranslateECommerceResponse)

CreateTranslateECommerceResponse creates a response to parse from TranslateECommerce response

type TranslateGeneralRequest

type TranslateGeneralRequest struct {
	*requests.RpcRequest
	SourceLanguage string `position:"Body" name:"SourceLanguage"`
	SourceText     string `position:"Body" name:"SourceText"`
	FormatType     string `position:"Body" name:"FormatType"`
	Scene          string `position:"Body" name:"Scene"`
	TargetLanguage string `position:"Body" name:"TargetLanguage"`
}

TranslateGeneralRequest is the request struct for api TranslateGeneral

func CreateTranslateGeneralRequest

func CreateTranslateGeneralRequest() (request *TranslateGeneralRequest)

CreateTranslateGeneralRequest creates a request to invoke TranslateGeneral API

type TranslateGeneralResponse

type TranslateGeneralResponse struct {
	*responses.BaseResponse
	Code      int    `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

TranslateGeneralResponse is the response struct for api TranslateGeneral

func CreateTranslateGeneralResponse

func CreateTranslateGeneralResponse() (response *TranslateGeneralResponse)

CreateTranslateGeneralResponse creates a response to parse from TranslateGeneral response

type TranslateImageRequest

type TranslateImageRequest struct {
	*requests.RpcRequest
	Ext            string `position:"Body" name:"Ext"`
	SourceLanguage string `position:"Body" name:"SourceLanguage"`
	Field          string `position:"Body" name:"Field"`
	ImageUrl       string `position:"Body" name:"ImageUrl"`
	TargetLanguage string `position:"Body" name:"TargetLanguage"`
	ImageBase64    string `position:"Body" name:"ImageBase64"`
}

TranslateImageRequest is the request struct for api TranslateImage

func CreateTranslateImageRequest

func CreateTranslateImageRequest() (request *TranslateImageRequest)

CreateTranslateImageRequest creates a request to invoke TranslateImage API

type TranslateImageResponse

type TranslateImageResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Code      int    `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      Data   `json:"Data" xml:"Data"`
}

TranslateImageResponse is the response struct for api TranslateImage

func CreateTranslateImageResponse

func CreateTranslateImageResponse() (response *TranslateImageResponse)

CreateTranslateImageResponse creates a response to parse from TranslateImage response

type TranslateRequest

type TranslateRequest struct {
	*requests.RpcRequest
	SourceLanguage string `position:"Body" name:"SourceLanguage"`
	SourceText     string `position:"Body" name:"SourceText"`
	FormatType     string `position:"Body" name:"FormatType"`
	Scene          string `position:"Body" name:"Scene"`
	TargetLanguage string `position:"Body" name:"TargetLanguage"`
}

TranslateRequest is the request struct for api Translate

func CreateTranslateRequest

func CreateTranslateRequest() (request *TranslateRequest)

CreateTranslateRequest creates a request to invoke Translate API

type TranslateResponse

type TranslateResponse struct {
	*responses.BaseResponse
	Code      int    `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

TranslateResponse is the response struct for api Translate

func CreateTranslateResponse

func CreateTranslateResponse() (response *TranslateResponse)

CreateTranslateResponse creates a response to parse from Translate response

type TranslatedList

type TranslatedList struct {
	Translated []map[string]interface{} `json:"Translated" xml:"Translated"`
}

TranslatedList is a nested struct in alimt response

type TranslatedValues

type TranslatedValues struct {
	CertificateTranslateItemDTO []CertificateTranslateItemDTO `json:"CertificateTranslateItemDTO" xml:"CertificateTranslateItemDTO"`
}

TranslatedValues is a nested struct in alimt response

Jump to

Keyboard shortcuts

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