seaking

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 seaking 包含阿里翻译API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaSeakingAuthmachineapiAPIRequest added in v1.2.0

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

AlibabaSeakingAuthmachineapiAPIRequest 机翻Api授权 API请求 alibaba.seaking.authmachineapi

机翻Api授权

func NewAlibabaSeakingAuthmachineapiRequest

func NewAlibabaSeakingAuthmachineapiRequest() *AlibabaSeakingAuthmachineapiAPIRequest

NewAlibabaSeakingAuthmachineapiRequest 初始化AlibabaSeakingAuthmachineapiAPIRequest对象

func (AlibabaSeakingAuthmachineapiAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaSeakingAuthmachineapiAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaSeakingAuthmachineapiAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaSeakingAuthmachineapiAPIRequest) GetIdentifier added in v1.2.0

GetIdentifier Identifier Getter

func (AlibabaSeakingAuthmachineapiAPIRequest) GetIdentifyType added in v1.2.0

func (r AlibabaSeakingAuthmachineapiAPIRequest) GetIdentifyType() string

GetIdentifyType IdentifyType Getter

func (AlibabaSeakingAuthmachineapiAPIRequest) GetRawParams added in v1.2.8

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

func (AlibabaSeakingAuthmachineapiAPIRequest) GetSubIdentifier added in v1.2.0

func (r AlibabaSeakingAuthmachineapiAPIRequest) GetSubIdentifier() string

GetSubIdentifier SubIdentifier Getter

func (AlibabaSeakingAuthmachineapiAPIRequest) GetSubIdentifyType added in v1.2.0

func (r AlibabaSeakingAuthmachineapiAPIRequest) GetSubIdentifyType() string

GetSubIdentifyType SubIdentifyType Getter

func (*AlibabaSeakingAuthmachineapiAPIRequest) SetIdentifier added in v1.2.0

func (r *AlibabaSeakingAuthmachineapiAPIRequest) SetIdentifier(_identifier string) error

SetIdentifier is Identifier Setter erp用户id

func (*AlibabaSeakingAuthmachineapiAPIRequest) SetIdentifyType added in v1.2.0

func (r *AlibabaSeakingAuthmachineapiAPIRequest) SetIdentifyType(_identifyType string) error

SetIdentifyType is IdentifyType Setter erp名称

func (*AlibabaSeakingAuthmachineapiAPIRequest) SetSubIdentifier added in v1.2.0

func (r *AlibabaSeakingAuthmachineapiAPIRequest) SetSubIdentifier(_subIdentifier string) error

SetSubIdentifier is SubIdentifier Setter 店铺id(ae为cn开头的店铺id, lazada为邮箱)

func (*AlibabaSeakingAuthmachineapiAPIRequest) SetSubIdentifyType added in v1.2.0

func (r *AlibabaSeakingAuthmachineapiAPIRequest) SetSubIdentifyType(_subIdentifyType string) error

SetSubIdentifyType is SubIdentifyType Setter 店铺所在平台

type AlibabaSeakingAuthmachineapiAPIResponse

type AlibabaSeakingAuthmachineapiAPIResponse struct {
	model.CommonResponse
	AlibabaSeakingAuthmachineapiAPIResponseModel
}

AlibabaSeakingAuthmachineapiAPIResponse 机翻Api授权 API返回值 alibaba.seaking.authmachineapi

机翻Api授权

type AlibabaSeakingAuthmachineapiAPIResponseModel added in v1.2.0

type AlibabaSeakingAuthmachineapiAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_seaking_authmachineapi_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaSeakingAuthmachineapiAPIResponseModel is 机翻Api授权 成功返回结果

type AlibabaSeakingDiagnosistitleAPIRequest added in v1.2.0

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

AlibabaSeakingDiagnosistitleAPIRequest 标题诊断 API请求 alibaba.seaking.diagnosistitle

标题诊断

func NewAlibabaSeakingDiagnosistitleRequest

func NewAlibabaSeakingDiagnosistitleRequest() *AlibabaSeakingDiagnosistitleAPIRequest

NewAlibabaSeakingDiagnosistitleRequest 初始化AlibabaSeakingDiagnosistitleAPIRequest对象

func (AlibabaSeakingDiagnosistitleAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaSeakingDiagnosistitleAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaSeakingDiagnosistitleAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaSeakingDiagnosistitleAPIRequest) GetCategoryId added in v1.2.0

GetCategoryId CategoryId Getter

func (AlibabaSeakingDiagnosistitleAPIRequest) GetExtra added in v1.2.0

GetExtra Extra Getter

func (AlibabaSeakingDiagnosistitleAPIRequest) GetIdentifier added in v1.2.0

GetIdentifier Identifier Getter

func (AlibabaSeakingDiagnosistitleAPIRequest) GetIdentifierType added in v1.2.0

func (r AlibabaSeakingDiagnosistitleAPIRequest) GetIdentifierType() string

GetIdentifierType IdentifierType Getter

func (AlibabaSeakingDiagnosistitleAPIRequest) GetLanguage added in v1.2.0

GetLanguage Language Getter

func (AlibabaSeakingDiagnosistitleAPIRequest) GetPlatform added in v1.2.0

GetPlatform Platform Getter

func (AlibabaSeakingDiagnosistitleAPIRequest) GetRawParams added in v1.2.8

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

func (AlibabaSeakingDiagnosistitleAPIRequest) GetTitle added in v1.2.0

GetTitle Title Getter

func (*AlibabaSeakingDiagnosistitleAPIRequest) SetCategoryId added in v1.2.0

func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetCategoryId(_categoryId int64) error

SetCategoryId is CategoryId Setter 类目id,没有的时候传-1

func (*AlibabaSeakingDiagnosistitleAPIRequest) SetExtra added in v1.2.0

func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetExtra(_extra *Extra) error

SetExtra is Extra Setter 扩展信息

func (*AlibabaSeakingDiagnosistitleAPIRequest) SetIdentifier added in v1.2.0

func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetIdentifier(_identifier string) error

SetIdentifier is Identifier Setter erp用户id

func (*AlibabaSeakingDiagnosistitleAPIRequest) SetIdentifierType added in v1.2.0

func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetIdentifierType(_identifierType string) error

SetIdentifierType is IdentifierType Setter 调用来源(erp名称)

func (*AlibabaSeakingDiagnosistitleAPIRequest) SetLanguage added in v1.2.0

func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetLanguage(_language string) error

SetLanguage is Language Setter 语种

func (*AlibabaSeakingDiagnosistitleAPIRequest) SetPlatform added in v1.2.0

func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetPlatform(_platform string) error

SetPlatform is Platform Setter 商品所在平台(ae/icbu)

func (*AlibabaSeakingDiagnosistitleAPIRequest) SetTitle added in v1.2.0

SetTitle is Title Setter 标题

type AlibabaSeakingDiagnosistitleAPIResponse

type AlibabaSeakingDiagnosistitleAPIResponse struct {
	model.CommonResponse
	AlibabaSeakingDiagnosistitleAPIResponseModel
}

AlibabaSeakingDiagnosistitleAPIResponse 标题诊断 API返回值 alibaba.seaking.diagnosistitle

标题诊断

type AlibabaSeakingDiagnosistitleAPIResponseModel added in v1.2.0

type AlibabaSeakingDiagnosistitleAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_seaking_diagnosistitle_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 全大写的单词
	AllUppercaseWords []string `json:"all_uppercase_words,omitempty" xml:"all_uppercase_words>string,omitempty"`
	// 违禁词
	DisableWordList []string `json:"disable_word_list,omitempty" xml:"disable_word_list>string,omitempty"`
	// 重复的词
	DuplicateWordList []string `json:"duplicate_word_list,omitempty" xml:"duplicate_word_list>string,omitempty"`
	// 首字母未大写单词
	NoFirstUppercaseWordList []string `json:"no_first_uppercase_word_list,omitempty" xml:"no_first_uppercase_word_list>string,omitempty"`
	// 拼写错误的单词
	SpellErrorWordList []string `json:"spell_error_word_list,omitempty" xml:"spell_error_word_list>string,omitempty"`
	// 语言质量分(0-5)
	LanguageQualityScore string `json:"language_quality_score,omitempty" xml:"language_quality_score,omitempty"`
	// 总分(0-100)
	TotalScore int64 `json:"total_score,omitempty" xml:"total_score,omitempty"`
	// 是否包含类目主词
	ContainCoreClasses bool `json:"contain_core_classes,omitempty" xml:"contain_core_classes,omitempty"`
	// 标题是否超过长度限制
	OverLengthLimit bool `json:"over_length_limit,omitempty" xml:"over_length_limit,omitempty"`
}

AlibabaSeakingDiagnosistitleAPIResponseModel is 标题诊断 成功返回结果

type AlibabaSeakingFeedbackAPIRequest added in v1.2.0

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

AlibabaSeakingFeedbackAPIRequest API服务发布成功商品ID回传 API请求 alibaba.seaking.feedback

API服务发布成功商品ID回传,用于跟进商品id后续的使用情况

func NewAlibabaSeakingFeedbackRequest

func NewAlibabaSeakingFeedbackRequest() *AlibabaSeakingFeedbackAPIRequest

NewAlibabaSeakingFeedbackRequest 初始化AlibabaSeakingFeedbackAPIRequest对象

func (AlibabaSeakingFeedbackAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaSeakingFeedbackAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaSeakingFeedbackAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaSeakingFeedbackAPIRequest) GetIdentifier added in v1.2.0

func (r AlibabaSeakingFeedbackAPIRequest) GetIdentifier() string

GetIdentifier Identifier Getter

func (AlibabaSeakingFeedbackAPIRequest) GetIdentifierType added in v1.2.0

func (r AlibabaSeakingFeedbackAPIRequest) GetIdentifierType() string

GetIdentifierType IdentifierType Getter

func (AlibabaSeakingFeedbackAPIRequest) GetInvokeApiName added in v1.2.0

func (r AlibabaSeakingFeedbackAPIRequest) GetInvokeApiName() string

GetInvokeApiName InvokeApiName Getter

func (AlibabaSeakingFeedbackAPIRequest) GetPlatform added in v1.2.0

func (r AlibabaSeakingFeedbackAPIRequest) GetPlatform() string

GetPlatform Platform Getter

func (AlibabaSeakingFeedbackAPIRequest) GetProductId added in v1.2.0

func (r AlibabaSeakingFeedbackAPIRequest) GetProductId() string

GetProductId ProductId Getter

func (AlibabaSeakingFeedbackAPIRequest) GetRawParams added in v1.2.8

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

func (AlibabaSeakingFeedbackAPIRequest) GetSubIdentifier added in v1.2.0

func (r AlibabaSeakingFeedbackAPIRequest) GetSubIdentifier() string

GetSubIdentifier SubIdentifier Getter

func (AlibabaSeakingFeedbackAPIRequest) GetSubIdentifierType added in v1.2.0

func (r AlibabaSeakingFeedbackAPIRequest) GetSubIdentifierType() string

GetSubIdentifierType SubIdentifierType Getter

func (*AlibabaSeakingFeedbackAPIRequest) SetIdentifier added in v1.2.0

func (r *AlibabaSeakingFeedbackAPIRequest) SetIdentifier(_identifier string) error

SetIdentifier is Identifier Setter erp名称

func (*AlibabaSeakingFeedbackAPIRequest) SetIdentifierType added in v1.2.0

func (r *AlibabaSeakingFeedbackAPIRequest) SetIdentifierType(_identifierType string) error

SetIdentifierType is IdentifierType Setter erp用户id

func (*AlibabaSeakingFeedbackAPIRequest) SetInvokeApiName added in v1.2.0

func (r *AlibabaSeakingFeedbackAPIRequest) SetInvokeApiName(_invokeApiName string) error

SetInvokeApiName is InvokeApiName Setter api 接口名字

func (*AlibabaSeakingFeedbackAPIRequest) SetPlatform added in v1.2.0

func (r *AlibabaSeakingFeedbackAPIRequest) SetPlatform(_platform string) error

SetPlatform is Platform Setter 商品投放平台

func (*AlibabaSeakingFeedbackAPIRequest) SetProductId added in v1.2.0

func (r *AlibabaSeakingFeedbackAPIRequest) SetProductId(_productId string) error

SetProductId is ProductId Setter 商品id

func (*AlibabaSeakingFeedbackAPIRequest) SetSubIdentifier added in v1.2.0

func (r *AlibabaSeakingFeedbackAPIRequest) SetSubIdentifier(_subIdentifier string) error

SetSubIdentifier is SubIdentifier Setter 店铺id(ae为cn开头的店铺id, lazada为邮箱)

func (*AlibabaSeakingFeedbackAPIRequest) SetSubIdentifierType added in v1.2.0

func (r *AlibabaSeakingFeedbackAPIRequest) SetSubIdentifierType(_subIdentifierType string) error

SetSubIdentifierType is SubIdentifierType Setter 店铺所在平台

type AlibabaSeakingFeedbackAPIResponse

type AlibabaSeakingFeedbackAPIResponse struct {
	model.CommonResponse
	AlibabaSeakingFeedbackAPIResponseModel
}

AlibabaSeakingFeedbackAPIResponse API服务发布成功商品ID回传 API返回值 alibaba.seaking.feedback

API服务发布成功商品ID回传,用于跟进商品id后续的使用情况

type AlibabaSeakingFeedbackAPIResponseModel added in v1.2.0

type AlibabaSeakingFeedbackAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_seaking_feedback_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaSeakingFeedbackAPIResponseModel is API服务发布成功商品ID回传 成功返回结果

type AlibabaSeakingImagetranslateResultAPIRequest added in v1.2.0

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

AlibabaSeakingImagetranslateResultAPIRequest 获取图片翻译任务结果 API请求 alibaba.seaking.imagetranslate.result

获取图片翻译任务结果

func NewAlibabaSeakingImagetranslateResultRequest

func NewAlibabaSeakingImagetranslateResultRequest() *AlibabaSeakingImagetranslateResultAPIRequest

NewAlibabaSeakingImagetranslateResultRequest 初始化AlibabaSeakingImagetranslateResultAPIRequest对象

func (AlibabaSeakingImagetranslateResultAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaSeakingImagetranslateResultAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaSeakingImagetranslateResultAPIRequest) GetRawParams added in v1.2.8

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

func (AlibabaSeakingImagetranslateResultAPIRequest) GetTaskId added in v1.2.0

GetTaskId TaskId Getter

func (AlibabaSeakingImagetranslateResultAPIRequest) GetToken added in v1.2.0

GetToken Token Getter

func (AlibabaSeakingImagetranslateResultAPIRequest) GetTokenFrom added in v1.2.0

GetTokenFrom TokenFrom Getter

func (*AlibabaSeakingImagetranslateResultAPIRequest) SetTaskId added in v1.2.0

SetTaskId is TaskId Setter 任务id

func (*AlibabaSeakingImagetranslateResultAPIRequest) SetToken added in v1.2.0

SetToken is Token Setter 用户token

func (*AlibabaSeakingImagetranslateResultAPIRequest) SetTokenFrom added in v1.2.0

func (r *AlibabaSeakingImagetranslateResultAPIRequest) SetTokenFrom(_tokenFrom string) error

SetTokenFrom is TokenFrom Setter token来源站点

type AlibabaSeakingImagetranslateResultAPIResponse

type AlibabaSeakingImagetranslateResultAPIResponse struct {
	model.CommonResponse
	AlibabaSeakingImagetranslateResultAPIResponseModel
}

AlibabaSeakingImagetranslateResultAPIResponse 获取图片翻译任务结果 API返回值 alibaba.seaking.imagetranslate.result

获取图片翻译任务结果

type AlibabaSeakingImagetranslateResultAPIResponseModel added in v1.2.0

type AlibabaSeakingImagetranslateResultAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_seaking_imagetranslate_result_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	Result *TaskResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaSeakingImagetranslateResultAPIResponseModel is 获取图片翻译任务结果 成功返回结果

type AlibabaSeakingImagetranslateSubmitAPIRequest added in v1.2.0

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

AlibabaSeakingImagetranslateSubmitAPIRequest 提交图片翻译任务 API请求 alibaba.seaking.imagetranslate.submit

提交图片翻译任务

func NewAlibabaSeakingImagetranslateSubmitRequest

func NewAlibabaSeakingImagetranslateSubmitRequest() *AlibabaSeakingImagetranslateSubmitAPIRequest

NewAlibabaSeakingImagetranslateSubmitRequest 初始化AlibabaSeakingImagetranslateSubmitAPIRequest对象

func (AlibabaSeakingImagetranslateSubmitAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaSeakingImagetranslateSubmitAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaSeakingImagetranslateSubmitAPIRequest) GetImageTranslateDetailList added in v1.2.0

GetImageTranslateDetailList ImageTranslateDetailList Getter

func (AlibabaSeakingImagetranslateSubmitAPIRequest) GetRawParams added in v1.2.8

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

func (AlibabaSeakingImagetranslateSubmitAPIRequest) GetToken added in v1.2.0

GetToken Token Getter

func (AlibabaSeakingImagetranslateSubmitAPIRequest) GetTokenFrom added in v1.2.0

GetTokenFrom TokenFrom Getter

func (*AlibabaSeakingImagetranslateSubmitAPIRequest) SetImageTranslateDetailList added in v1.2.0

func (r *AlibabaSeakingImagetranslateSubmitAPIRequest) SetImageTranslateDetailList(_imageTranslateDetailList []ImageTranslateDetailDto) error

SetImageTranslateDetailList is ImageTranslateDetailList Setter 子任务列表

func (*AlibabaSeakingImagetranslateSubmitAPIRequest) SetToken added in v1.2.0

SetToken is Token Setter 用户token

func (*AlibabaSeakingImagetranslateSubmitAPIRequest) SetTokenFrom added in v1.2.0

func (r *AlibabaSeakingImagetranslateSubmitAPIRequest) SetTokenFrom(_tokenFrom string) error

SetTokenFrom is TokenFrom Setter token来源站点

type AlibabaSeakingImagetranslateSubmitAPIResponse

type AlibabaSeakingImagetranslateSubmitAPIResponse struct {
	model.CommonResponse
	AlibabaSeakingImagetranslateSubmitAPIResponseModel
}

AlibabaSeakingImagetranslateSubmitAPIResponse 提交图片翻译任务 API返回值 alibaba.seaking.imagetranslate.submit

提交图片翻译任务

type AlibabaSeakingImagetranslateSubmitAPIResponseModel added in v1.2.0

type AlibabaSeakingImagetranslateSubmitAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_seaking_imagetranslate_submit_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 任务id
	TaskId int64 `json:"task_id,omitempty" xml:"task_id,omitempty"`
}

AlibabaSeakingImagetranslateSubmitAPIResponseModel is 提交图片翻译任务 成功返回结果

type AlibabaSeakingServicepackAPIRequest added in v1.2.0

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

AlibabaSeakingServicepackAPIRequest 获取海王用户权限包 API请求 alibaba.seaking.servicepack

获取海王用户权限包

func NewAlibabaSeakingServicepackRequest

func NewAlibabaSeakingServicepackRequest() *AlibabaSeakingServicepackAPIRequest

NewAlibabaSeakingServicepackRequest 初始化AlibabaSeakingServicepackAPIRequest对象

func (AlibabaSeakingServicepackAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaSeakingServicepackAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaSeakingServicepackAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaSeakingServicepackAPIRequest) GetIdentifier added in v1.2.0

func (r AlibabaSeakingServicepackAPIRequest) GetIdentifier() string

GetIdentifier Identifier Getter

func (AlibabaSeakingServicepackAPIRequest) GetIdentifyType added in v1.2.0

func (r AlibabaSeakingServicepackAPIRequest) GetIdentifyType() string

GetIdentifyType IdentifyType Getter

func (AlibabaSeakingServicepackAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaSeakingServicepackAPIRequest) SetIdentifier added in v1.2.0

func (r *AlibabaSeakingServicepackAPIRequest) SetIdentifier(_identifier string) error

SetIdentifier is Identifier Setter 验证类型下的唯一id

func (*AlibabaSeakingServicepackAPIRequest) SetIdentifyType added in v1.2.0

func (r *AlibabaSeakingServicepackAPIRequest) SetIdentifyType(_identifyType string) error

SetIdentifyType is IdentifyType Setter 验证类型

type AlibabaSeakingServicepackAPIResponse

type AlibabaSeakingServicepackAPIResponse struct {
	model.CommonResponse
	AlibabaSeakingServicepackAPIResponseModel
}

AlibabaSeakingServicepackAPIResponse 获取海王用户权限包 API返回值 alibaba.seaking.servicepack

获取海王用户权限包

type AlibabaSeakingServicepackAPIResponseModel added in v1.2.0

type AlibabaSeakingServicepackAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_seaking_servicepack_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 权限包列表
	ServicePackList []AlibabaSeakingServicepackResult `json:"service_pack_list,omitempty" xml:"service_pack_list>alibaba_seaking_servicepack_result,omitempty"`
}

AlibabaSeakingServicepackAPIResponseModel is 获取海王用户权限包 成功返回结果

type AlibabaSeakingServicepackResult

type AlibabaSeakingServicepackResult struct {
	// 到期时间
	ValidateTo string `json:"validate_to,omitempty" xml:"validate_to,omitempty"`
	// 权限包名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 权限包id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

AlibabaSeakingServicepackResult 结构体

type AlibabaSeakingTaskReportAPIRequest added in v1.2.0

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

AlibabaSeakingTaskReportAPIRequest 跳转任务发布成功商品ID回传 API请求 alibaba.seaking.task.report

跳转任务发布成功商品ID回传

func NewAlibabaSeakingTaskReportRequest

func NewAlibabaSeakingTaskReportRequest() *AlibabaSeakingTaskReportAPIRequest

NewAlibabaSeakingTaskReportRequest 初始化AlibabaSeakingTaskReportAPIRequest对象

func (AlibabaSeakingTaskReportAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaSeakingTaskReportAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaSeakingTaskReportAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaSeakingTaskReportAPIRequest) GetRawParams added in v1.2.8

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

func (AlibabaSeakingTaskReportAPIRequest) GetReportDetail added in v1.2.0

GetReportDetail ReportDetail Getter

func (AlibabaSeakingTaskReportAPIRequest) GetTaskType added in v1.2.0

GetTaskType TaskType Getter

func (AlibabaSeakingTaskReportAPIRequest) GetToken added in v1.2.0

GetToken Token Getter

func (AlibabaSeakingTaskReportAPIRequest) GetTokenFrom added in v1.2.0

func (r AlibabaSeakingTaskReportAPIRequest) GetTokenFrom() string

GetTokenFrom TokenFrom Getter

func (*AlibabaSeakingTaskReportAPIRequest) SetReportDetail added in v1.2.0

func (r *AlibabaSeakingTaskReportAPIRequest) SetReportDetail(_reportDetail []TaskDetailReportDto) error

SetReportDetail is ReportDetail Setter 上报数据详情

func (*AlibabaSeakingTaskReportAPIRequest) SetTaskType added in v1.2.0

func (r *AlibabaSeakingTaskReportAPIRequest) SetTaskType(_taskType string) error

SetTaskType is TaskType Setter 任务类型(title/image)

func (*AlibabaSeakingTaskReportAPIRequest) SetToken added in v1.2.0

func (r *AlibabaSeakingTaskReportAPIRequest) SetToken(_token string) error

SetToken is Token Setter 用户token

func (*AlibabaSeakingTaskReportAPIRequest) SetTokenFrom added in v1.2.0

func (r *AlibabaSeakingTaskReportAPIRequest) SetTokenFrom(_tokenFrom string) error

SetTokenFrom is TokenFrom Setter token来源站点

type AlibabaSeakingTaskReportAPIResponse

type AlibabaSeakingTaskReportAPIResponse struct {
	model.CommonResponse
	AlibabaSeakingTaskReportAPIResponseModel
}

AlibabaSeakingTaskReportAPIResponse 跳转任务发布成功商品ID回传 API返回值 alibaba.seaking.task.report

跳转任务发布成功商品ID回传

type AlibabaSeakingTaskReportAPIResponseModel added in v1.2.0

type AlibabaSeakingTaskReportAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_seaking_task_report_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 系统自动生成
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaSeakingTaskReportAPIResponseModel is 跳转任务发布成功商品ID回传 成功返回结果

type AlibabaSeakingTitlerewriteResultAPIRequest added in v1.2.0

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

AlibabaSeakingTitlerewriteResultAPIRequest 获取标题改写任务结果 API请求 alibaba.seaking.titlerewrite.result

获取标题改写任务结果

func NewAlibabaSeakingTitlerewriteResultRequest

func NewAlibabaSeakingTitlerewriteResultRequest() *AlibabaSeakingTitlerewriteResultAPIRequest

NewAlibabaSeakingTitlerewriteResultRequest 初始化AlibabaSeakingTitlerewriteResultAPIRequest对象

func (AlibabaSeakingTitlerewriteResultAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaSeakingTitlerewriteResultAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaSeakingTitlerewriteResultAPIRequest) GetRawParams added in v1.2.8

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

func (AlibabaSeakingTitlerewriteResultAPIRequest) GetTaskId added in v1.2.0

GetTaskId TaskId Getter

func (AlibabaSeakingTitlerewriteResultAPIRequest) GetToken added in v1.2.0

GetToken Token Getter

func (AlibabaSeakingTitlerewriteResultAPIRequest) GetTokenFrom added in v1.2.0

GetTokenFrom TokenFrom Getter

func (*AlibabaSeakingTitlerewriteResultAPIRequest) SetTaskId added in v1.2.0

SetTaskId is TaskId Setter 任务id

func (*AlibabaSeakingTitlerewriteResultAPIRequest) SetToken added in v1.2.0

SetToken is Token Setter 用户token

func (*AlibabaSeakingTitlerewriteResultAPIRequest) SetTokenFrom added in v1.2.0

func (r *AlibabaSeakingTitlerewriteResultAPIRequest) SetTokenFrom(_tokenFrom string) error

SetTokenFrom is TokenFrom Setter token来源站点

type AlibabaSeakingTitlerewriteResultAPIResponse

type AlibabaSeakingTitlerewriteResultAPIResponse struct {
	model.CommonResponse
	AlibabaSeakingTitlerewriteResultAPIResponseModel
}

AlibabaSeakingTitlerewriteResultAPIResponse 获取标题改写任务结果 API返回值 alibaba.seaking.titlerewrite.result

获取标题改写任务结果

type AlibabaSeakingTitlerewriteResultAPIResponseModel added in v1.2.0

type AlibabaSeakingTitlerewriteResultAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_seaking_titlerewrite_result_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	Result *TaskResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaSeakingTitlerewriteResultAPIResponseModel is 获取标题改写任务结果 成功返回结果

type AlibabaSeakingTitlerewriteSubmitAPIRequest added in v1.2.0

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

AlibabaSeakingTitlerewriteSubmitAPIRequest 提交标题改写任务 API请求 alibaba.seaking.titlerewrite.submit

提交标题改写任务

func NewAlibabaSeakingTitlerewriteSubmitRequest

func NewAlibabaSeakingTitlerewriteSubmitRequest() *AlibabaSeakingTitlerewriteSubmitAPIRequest

NewAlibabaSeakingTitlerewriteSubmitRequest 初始化AlibabaSeakingTitlerewriteSubmitAPIRequest对象

func (AlibabaSeakingTitlerewriteSubmitAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaSeakingTitlerewriteSubmitAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaSeakingTitlerewriteSubmitAPIRequest) GetRawParams added in v1.2.8

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

func (AlibabaSeakingTitlerewriteSubmitAPIRequest) GetTitleRewriteDetailList added in v1.2.0

func (r AlibabaSeakingTitlerewriteSubmitAPIRequest) GetTitleRewriteDetailList() []TitleRewriteDetailDto

GetTitleRewriteDetailList TitleRewriteDetailList Getter

func (AlibabaSeakingTitlerewriteSubmitAPIRequest) GetToken added in v1.2.0

GetToken Token Getter

func (AlibabaSeakingTitlerewriteSubmitAPIRequest) GetTokenFrom added in v1.2.0

GetTokenFrom TokenFrom Getter

func (*AlibabaSeakingTitlerewriteSubmitAPIRequest) SetTitleRewriteDetailList added in v1.2.0

func (r *AlibabaSeakingTitlerewriteSubmitAPIRequest) SetTitleRewriteDetailList(_titleRewriteDetailList []TitleRewriteDetailDto) error

SetTitleRewriteDetailList is TitleRewriteDetailList Setter 任务详情列表

func (*AlibabaSeakingTitlerewriteSubmitAPIRequest) SetToken added in v1.2.0

SetToken is Token Setter 用户token

func (*AlibabaSeakingTitlerewriteSubmitAPIRequest) SetTokenFrom added in v1.2.0

func (r *AlibabaSeakingTitlerewriteSubmitAPIRequest) SetTokenFrom(_tokenFrom string) error

SetTokenFrom is TokenFrom Setter token来源站点

type AlibabaSeakingTitlerewriteSubmitAPIResponse

type AlibabaSeakingTitlerewriteSubmitAPIResponse struct {
	model.CommonResponse
	AlibabaSeakingTitlerewriteSubmitAPIResponseModel
}

AlibabaSeakingTitlerewriteSubmitAPIResponse 提交标题改写任务 API返回值 alibaba.seaking.titlerewrite.submit

提交标题改写任务

type AlibabaSeakingTitlerewriteSubmitAPIResponseModel added in v1.2.0

type AlibabaSeakingTitlerewriteSubmitAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_seaking_titlerewrite_submit_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 任务id
	TaskId int64 `json:"task_id,omitempty" xml:"task_id,omitempty"`
}

AlibabaSeakingTitlerewriteSubmitAPIResponseModel is 提交标题改写任务 成功返回结果

type Extra

type Extra struct {
	// 商品所在平台
	Platform string `json:"platform,omitempty" xml:"platform,omitempty"`
	// 商品id
	ProductId string `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// 店铺id
	SubIdentifier string `json:"sub_identifier,omitempty" xml:"sub_identifier,omitempty"`
	// 店铺所在平台
	SubIdentifyType string `json:"sub_identify_type,omitempty" xml:"sub_identify_type,omitempty"`
}

Extra 结构体

type ImageTranslateDetailDto

type ImageTranslateDetailDto struct {
	// 目标语种
	TargetLang string `json:"target_lang,omitempty" xml:"target_lang,omitempty"`
	// 源语种
	SourceLang string `json:"source_lang,omitempty" xml:"source_lang,omitempty"`
	// 图片url
	ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	// 商品所在平台(ae/lazada))
	Platform string `json:"platform,omitempty" xml:"platform,omitempty"`
	// 商品id
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// 子任务编号,从1开始,必须连续
	Idx int64 `json:"idx,omitempty" xml:"idx,omitempty"`
}

ImageTranslateDetailDto 结构体

type TaskDetailReportDto

type TaskDetailReportDto struct {
	// 商品所在平台(ae/lazada))
	Platform string `json:"platform,omitempty" xml:"platform,omitempty"`
	// 子任务编号,不填则表示更新所有子任务
	Idx int64 `json:"idx,omitempty" xml:"idx,omitempty"`
	// 商品id
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// 任务id
	TaskId int64 `json:"task_id,omitempty" xml:"task_id,omitempty"`
}

TaskDetailReportDto 结构体

type TaskResultDetailDto

type TaskResultDetailDto struct {
	// 图片翻译结果
	Result string `json:"result,omitempty" xml:"result,omitempty"`
	// 子任务状态
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 子任务编号
	Idx int64 `json:"idx,omitempty" xml:"idx,omitempty"`
}

TaskResultDetailDto 结构体

type TaskResultDto

type TaskResultDto struct {
	// 子任务列表
	TaskResultDetailList []TaskResultDetailDto `json:"task_result_detail_list,omitempty" xml:"task_result_detail_list>task_result_detail_dto,omitempty"`
	// 任务状态
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 完成的任务数
	FinishedCount int64 `json:"finished_count,omitempty" xml:"finished_count,omitempty"`
	// 总计任务数
	Total int64 `json:"total,omitempty" xml:"total,omitempty"`
}

TaskResultDto 结构体

type TitleRewriteDetailDto

type TitleRewriteDetailDto struct {
	// 目标语种
	TargetLang string `json:"target_lang,omitempty" xml:"target_lang,omitempty"`
	// 源语种
	SourceLang string `json:"source_lang,omitempty" xml:"source_lang,omitempty"`
	// 类目名称
	CategoryName string `json:"category_name,omitempty" xml:"category_name,omitempty"`
	// 商品标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 商品所在平台(ae/lazada)
	Platform string `json:"platform,omitempty" xml:"platform,omitempty"`
	// 商品图片
	ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	// 类目id
	CategoryId int64 `json:"category_id,omitempty" xml:"category_id,omitempty"`
	// 商品id
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// 子任务编号,从1开始,必须连续
	Idx int64 `json:"idx,omitempty" xml:"idx,omitempty"`
}

TitleRewriteDetailDto 结构体

Jump to

Keyboard shortcuts

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