Documentation ¶
Overview ¶
Package aliexpress 包含aliExpress相关结构体
Index ¶
- type AliexpressFeedPostPublishAPIRequest
- func (r AliexpressFeedPostPublishAPIRequest) GetApiMethodName() string
- func (r AliexpressFeedPostPublishAPIRequest) GetApiParams() url.Values
- func (r AliexpressFeedPostPublishAPIRequest) GetOffsitePublishPostEntity() *OffsitePublishPostEntity
- func (r *AliexpressFeedPostPublishAPIRequest) SetOffsitePublishPostEntity(_offsitePublishPostEntity *OffsitePublishPostEntity) error
- type AliexpressFeedPostPublishAPIResponse
- type AliexpressFeedPostPublishAPIResponseModel
- type AliexpressFeedPostPublishResponse
- type AliexpressSocialInsDirectresultUpdateAPIRequest
- func (r AliexpressSocialInsDirectresultUpdateAPIRequest) GetApiMethodName() string
- func (r AliexpressSocialInsDirectresultUpdateAPIRequest) GetApiParams() url.Values
- func (r AliexpressSocialInsDirectresultUpdateAPIRequest) GetId() int64
- func (r AliexpressSocialInsDirectresultUpdateAPIRequest) GetReceiveInsId() string
- func (r AliexpressSocialInsDirectresultUpdateAPIRequest) GetResult() int64
- func (r AliexpressSocialInsDirectresultUpdateAPIRequest) GetSenderInsId() string
- func (r *AliexpressSocialInsDirectresultUpdateAPIRequest) SetId(_id int64) error
- func (r *AliexpressSocialInsDirectresultUpdateAPIRequest) SetReceiveInsId(_receiveInsId string) error
- func (r *AliexpressSocialInsDirectresultUpdateAPIRequest) SetResult(_result int64) error
- func (r *AliexpressSocialInsDirectresultUpdateAPIRequest) SetSenderInsId(_senderInsId string) error
- type AliexpressSocialInsDirectresultUpdateAPIResponse
- type AliexpressSocialInsDirectresultUpdateAPIResponseModel
- type OffsitePostImageVO
- type OffsitePostVideoVO
- type OffsitePublishPostEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliexpressFeedPostPublishAPIRequest ¶ added in v1.2.0
type AliexpressFeedPostPublishAPIRequest struct { model.Params // contains filtered or unexported fields }
AliexpressFeedPostPublishAPIRequest 同步帖子 API请求 aliexpress.feed.post.publish
站外平台同步帖子至AE FEED域
func NewAliexpressFeedPostPublishRequest ¶
func NewAliexpressFeedPostPublishRequest() *AliexpressFeedPostPublishAPIRequest
NewAliexpressFeedPostPublishRequest 初始化AliexpressFeedPostPublishAPIRequest对象
func (AliexpressFeedPostPublishAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AliexpressFeedPostPublishAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliexpressFeedPostPublishAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AliexpressFeedPostPublishAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AliexpressFeedPostPublishAPIRequest) GetOffsitePublishPostEntity ¶ added in v1.2.0
func (r AliexpressFeedPostPublishAPIRequest) GetOffsitePublishPostEntity() *OffsitePublishPostEntity
GetOffsitePublishPostEntity OffsitePublishPostEntity Getter
func (*AliexpressFeedPostPublishAPIRequest) SetOffsitePublishPostEntity ¶ added in v1.2.0
func (r *AliexpressFeedPostPublishAPIRequest) SetOffsitePublishPostEntity(_offsitePublishPostEntity *OffsitePublishPostEntity) error
SetOffsitePublishPostEntity is OffsitePublishPostEntity Setter 站外导入内容请求参数
type AliexpressFeedPostPublishAPIResponse ¶
type AliexpressFeedPostPublishAPIResponse struct { model.CommonResponse AliexpressFeedPostPublishAPIResponseModel }
AliexpressFeedPostPublishAPIResponse 同步帖子 API返回值 aliexpress.feed.post.publish
站外平台同步帖子至AE FEED域
type AliexpressFeedPostPublishAPIResponseModel ¶ added in v1.2.0
type AliexpressFeedPostPublishAPIResponseModel struct { XMLName xml.Name `xml:"aliexpress_feed_post_publish_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回结果 Result *AliexpressFeedPostPublishResponse `json:"result,omitempty" xml:"result,omitempty"` }
AliexpressFeedPostPublishAPIResponseModel is 同步帖子 成功返回结果
type AliexpressFeedPostPublishResponse ¶
type AliexpressFeedPostPublishResponse struct { // 成功返回结果,json字符串 Data string `json:"data,omitempty" xml:"data,omitempty"` // 错误信息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 错误码 Code int64 `json:"code,omitempty" xml:"code,omitempty"` // 是否请求成功 Success bool `json:"success,omitempty" xml:"success,omitempty"` }
AliexpressFeedPostPublishResponse 结构体
type AliexpressSocialInsDirectresultUpdateAPIRequest ¶ added in v1.2.0
type AliexpressSocialInsDirectresultUpdateAPIRequest struct { model.Params // contains filtered or unexported fields }
AliexpressSocialInsDirectresultUpdateAPIRequest ISV更新INS私信发送的结果 API请求 aliexpress.social.ins.directresult.update
ISV更新INS私信发送的结果
func NewAliexpressSocialInsDirectresultUpdateRequest ¶
func NewAliexpressSocialInsDirectresultUpdateRequest() *AliexpressSocialInsDirectresultUpdateAPIRequest
NewAliexpressSocialInsDirectresultUpdateRequest 初始化AliexpressSocialInsDirectresultUpdateAPIRequest对象
func (AliexpressSocialInsDirectresultUpdateAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AliexpressSocialInsDirectresultUpdateAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliexpressSocialInsDirectresultUpdateAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AliexpressSocialInsDirectresultUpdateAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AliexpressSocialInsDirectresultUpdateAPIRequest) GetId ¶ added in v1.2.0
func (r AliexpressSocialInsDirectresultUpdateAPIRequest) GetId() int64
GetId Id Getter
func (AliexpressSocialInsDirectresultUpdateAPIRequest) GetReceiveInsId ¶ added in v1.2.0
func (r AliexpressSocialInsDirectresultUpdateAPIRequest) GetReceiveInsId() string
GetReceiveInsId ReceiveInsId Getter
func (AliexpressSocialInsDirectresultUpdateAPIRequest) GetResult ¶ added in v1.2.0
func (r AliexpressSocialInsDirectresultUpdateAPIRequest) GetResult() int64
GetResult Result Getter
func (AliexpressSocialInsDirectresultUpdateAPIRequest) GetSenderInsId ¶ added in v1.2.0
func (r AliexpressSocialInsDirectresultUpdateAPIRequest) GetSenderInsId() string
GetSenderInsId SenderInsId Getter
func (*AliexpressSocialInsDirectresultUpdateAPIRequest) SetId ¶ added in v1.2.0
func (r *AliexpressSocialInsDirectresultUpdateAPIRequest) SetId(_id int64) error
SetId is Id Setter 回调id,在获取图片时会返回
func (*AliexpressSocialInsDirectresultUpdateAPIRequest) SetReceiveInsId ¶ added in v1.2.0
func (r *AliexpressSocialInsDirectresultUpdateAPIRequest) SetReceiveInsId(_receiveInsId string) error
SetReceiveInsId is ReceiveInsId Setter 接受消息人INS_ID,也就是查询图片时的request_ins_id
func (*AliexpressSocialInsDirectresultUpdateAPIRequest) SetResult ¶ added in v1.2.0
func (r *AliexpressSocialInsDirectresultUpdateAPIRequest) SetResult(_result int64) error
SetResult is Result Setter 1.成功,2.失败。
func (*AliexpressSocialInsDirectresultUpdateAPIRequest) SetSenderInsId ¶ added in v1.2.0
func (r *AliexpressSocialInsDirectresultUpdateAPIRequest) SetSenderInsId(_senderInsId string) error
SetSenderInsId is SenderInsId Setter ISV发送私信人的INS_ID
type AliexpressSocialInsDirectresultUpdateAPIResponse ¶
type AliexpressSocialInsDirectresultUpdateAPIResponse struct { model.CommonResponse AliexpressSocialInsDirectresultUpdateAPIResponseModel }
AliexpressSocialInsDirectresultUpdateAPIResponse ISV更新INS私信发送的结果 API返回值 aliexpress.social.ins.directresult.update
ISV更新INS私信发送的结果
type AliexpressSocialInsDirectresultUpdateAPIResponseModel ¶ added in v1.2.0
type AliexpressSocialInsDirectresultUpdateAPIResponseModel struct { XMLName xml.Name `xml:"aliexpress_social_ins_directresult_update_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 错误码 ErrorCodee string `json:"error_codee,omitempty" xml:"error_codee,omitempty"` // 错误信息 ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` // 更新是否成功 Result bool `json:"result,omitempty" xml:"result,omitempty"` // 此次调用是否成功 Successs bool `json:"successs,omitempty" xml:"successs,omitempty"` }
AliexpressSocialInsDirectresultUpdateAPIResponseModel is ISV更新INS私信发送的结果 成功返回结果
type OffsitePostImageVO ¶
type OffsitePostImageVO struct { // 图片链接 ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"` // 图片高度 Height int64 `json:"height,omitempty" xml:"height,omitempty"` // 图片宽度 Width int64 `json:"width,omitempty" xml:"width,omitempty"` }
OffsitePostImageVO 结构体
type OffsitePostVideoVO ¶
type OffsitePostVideoVO struct { // 视频封面,与视频尺寸要一致 CoverUrl string `json:"cover_url,omitempty" xml:"cover_url,omitempty"` // 视频地址 VideoUrl string `json:"video_url,omitempty" xml:"video_url,omitempty"` // 视频宽度 Width int64 `json:"width,omitempty" xml:"width,omitempty"` // 视频高度 Height int64 `json:"height,omitempty" xml:"height,omitempty"` }
OffsitePostVideoVO 结构体
type OffsitePublishPostEntity ¶
type OffsitePublishPostEntity struct { // 图片列表,类型为1时不可为空 ImageInfos []OffsitePostImageVO `json:"image_infos,omitempty" xml:"image_infos>offsite_post_image_vo,omitempty"` // 商品id ProductIds []int64 `json:"product_ids,omitempty" xml:"product_ids>int64,omitempty"` // 帖子话题 Hashtag []string `json:"hashtag,omitempty" xml:"hashtag>string,omitempty"` // 帖子的summary Summary string `json:"summary,omitempty" xml:"summary,omitempty"` // 帖子类型:1-图文,2-视频 PostType string `json:"post_type,omitempty" xml:"post_type,omitempty"` // 帖子来源,import-第三方导入,接入前请咨询API负责人 Origin string `json:"origin,omitempty" xml:"origin,omitempty"` // 语言地区 Lang string `json:"lang,omitempty" xml:"lang,omitempty"` // 帖子拓展信息,垂类,形式等,介入前请咨询API负责人 ExtendsInfo string `json:"extends_info,omitempty" xml:"extends_info,omitempty"` // 币种 Currency string `json:"currency,omitempty" xml:"currency,omitempty"` // 视频参数,类型为2时不可为空 VideoInfo *OffsitePostVideoVO `json:"video_info,omitempty" xml:"video_info,omitempty"` }
OffsitePublishPostEntity 结构体