oversea

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package oversea 包含跨境API相关结构体

https://open.taobao.com/API.htm?docType=2&docId=28703

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaOverseaExchagerateGetAPIRequest added in v1.2.0

type AlibabaOverseaExchagerateGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaOverseaExchagerateGetAPIRequest 汇率信息获取 API请求 alibaba.oversea.exchagerate.get

提供外部汇率查询接口

func NewAlibabaOverseaExchagerateGetRequest

func NewAlibabaOverseaExchagerateGetRequest() *AlibabaOverseaExchagerateGetAPIRequest

NewAlibabaOverseaExchagerateGetRequest 初始化AlibabaOverseaExchagerateGetAPIRequest对象

func (AlibabaOverseaExchagerateGetAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaOverseaExchagerateGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaOverseaExchagerateGetAPIRequest) GetApiParams added in v1.2.0

func (r AlibabaOverseaExchagerateGetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaOverseaExchagerateGetAPIRequest) GetBaseCode added in v1.2.0

GetBaseCode BaseCode Getter

func (AlibabaOverseaExchagerateGetAPIRequest) GetBizCode added in v1.2.0

GetBizCode BizCode Getter

func (AlibabaOverseaExchagerateGetAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaOverseaExchagerateGetAPIRequest) GetTargetCode added in v1.2.0

GetTargetCode TargetCode Getter

func (*AlibabaOverseaExchagerateGetAPIRequest) SetBaseCode added in v1.2.0

func (r *AlibabaOverseaExchagerateGetAPIRequest) SetBaseCode(_baseCode string) error

SetBaseCode is BaseCode Setter 原始币种

func (*AlibabaOverseaExchagerateGetAPIRequest) SetBizCode added in v1.2.0

func (r *AlibabaOverseaExchagerateGetAPIRequest) SetBizCode(_bizCode string) error

SetBizCode is BizCode Setter 业务类型

func (*AlibabaOverseaExchagerateGetAPIRequest) SetTargetCode added in v1.2.0

func (r *AlibabaOverseaExchagerateGetAPIRequest) SetTargetCode(_targetCode string) error

SetTargetCode is TargetCode Setter 目标币种

type AlibabaOverseaExchagerateGetAPIResponse

type AlibabaOverseaExchagerateGetAPIResponse struct {
	model.CommonResponse
	AlibabaOverseaExchagerateGetAPIResponseModel
}

AlibabaOverseaExchagerateGetAPIResponse 汇率信息获取 API返回值 alibaba.oversea.exchagerate.get

提供外部汇率查询接口

type AlibabaOverseaExchagerateGetAPIResponseModel added in v1.2.0

type AlibabaOverseaExchagerateGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_oversea_exchagerate_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询结果描述
	Result *DataResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaOverseaExchagerateGetAPIResponseModel is 汇率信息获取 成功返回结果

type AlibabaOverseaTranslateGetAPIRequest added in v1.2.0

type AlibabaOverseaTranslateGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaOverseaTranslateGetAPIRequest 获取文本翻译信息 API请求 alibaba.oversea.translate.get

根据传入的文本信息,获取其目标语言的翻译结果

func NewAlibabaOverseaTranslateGetRequest

func NewAlibabaOverseaTranslateGetRequest() *AlibabaOverseaTranslateGetAPIRequest

NewAlibabaOverseaTranslateGetRequest 初始化AlibabaOverseaTranslateGetAPIRequest对象

func (AlibabaOverseaTranslateGetAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaOverseaTranslateGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaOverseaTranslateGetAPIRequest) GetApiParams added in v1.2.0

func (r AlibabaOverseaTranslateGetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaOverseaTranslateGetAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaOverseaTranslateGetAPIRequest) GetSourceLang added in v1.2.0

func (r AlibabaOverseaTranslateGetAPIRequest) GetSourceLang() string

GetSourceLang SourceLang Getter

func (AlibabaOverseaTranslateGetAPIRequest) GetTargetLang added in v1.2.0

func (r AlibabaOverseaTranslateGetAPIRequest) GetTargetLang() string

GetTargetLang TargetLang Getter

func (AlibabaOverseaTranslateGetAPIRequest) GetText added in v1.2.0

GetText Text Getter

func (*AlibabaOverseaTranslateGetAPIRequest) SetSourceLang added in v1.2.0

func (r *AlibabaOverseaTranslateGetAPIRequest) SetSourceLang(_sourceLang string) error

SetSourceLang is SourceLang Setter 源语种英文

func (*AlibabaOverseaTranslateGetAPIRequest) SetTargetLang added in v1.2.0

func (r *AlibabaOverseaTranslateGetAPIRequest) SetTargetLang(_targetLang string) error

SetTargetLang is TargetLang Setter 目标语种中文

func (*AlibabaOverseaTranslateGetAPIRequest) SetText added in v1.2.0

SetText is Text Setter 待翻译文本

type AlibabaOverseaTranslateGetAPIResponse

type AlibabaOverseaTranslateGetAPIResponse struct {
	model.CommonResponse
	AlibabaOverseaTranslateGetAPIResponseModel
}

AlibabaOverseaTranslateGetAPIResponse 获取文本翻译信息 API返回值 alibaba.oversea.translate.get

根据传入的文本信息,获取其目标语言的翻译结果

type AlibabaOverseaTranslateGetAPIResponseModel added in v1.2.0

type AlibabaOverseaTranslateGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_oversea_translate_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Result *SimpleTransResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaOverseaTranslateGetAPIResponseModel is 获取文本翻译信息 成功返回结果

type DataResult

type DataResult struct {
	// 查到的税率信息
	ExchangeRate string `json:"exchange_rate,omitempty" xml:"exchange_rate,omitempty"`
	// 错误代码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 错误信息
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// 查询结果是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

DataResult 结构体

type SimpleTransResult

type SimpleTransResult struct {
	// translatedText
	TranslatedText string `json:"translated_text,omitempty" xml:"translated_text,omitempty"`
	// statusCode
	StatusCode string `json:"status_code,omitempty" xml:"status_code,omitempty"`
}

SimpleTransResult 结构体

Jump to

Keyboard shortcuts

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