jae

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package jae 包含JAE相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseParamDto added in v1.3.4

func ReleaseParamDto(v *ParamDto)

ReleaseParamDto 释放ParamDto

func ReleaseRichClientInfo added in v1.3.4

func ReleaseRichClientInfo(v *RichClientInfo)

ReleaseRichClientInfo 释放RichClientInfo

func ReleaseTaobaoAplatformWeakgetAPIRequest added in v1.3.4

func ReleaseTaobaoAplatformWeakgetAPIRequest(v *TaobaoAplatformWeakgetAPIRequest)

ReleaseTaobaoAplatformWeakgetAPIRequest 将 TaobaoAplatformWeakgetAPIRequest 放入 sync.Pool

func ReleaseTaobaoAplatformWeakgetAPIResponse added in v1.3.4

func ReleaseTaobaoAplatformWeakgetAPIResponse(v *TaobaoAplatformWeakgetAPIResponse)

ReleaseTaobaoAplatformWeakgetAPIResponse 将 TaobaoAplatformWeakgetAPIResponse 保存到 sync.Pool

func ReleaseTaobaoAplatformWeakgetResult added in v1.3.4

func ReleaseTaobaoAplatformWeakgetResult(v *TaobaoAplatformWeakgetResult)

ReleaseTaobaoAplatformWeakgetResult 释放TaobaoAplatformWeakgetResult

Types

type ParamDto

type ParamDto struct {
	// 业务参数,json格式字符串
	BizParam string `json:"biz_param,omitempty" xml:"biz_param,omitempty"`
	// 扩展参数
	ExtraParam string `json:"extra_param,omitempty" xml:"extra_param,omitempty"`
	// 区分业务类型及方法
	BizType string `json:"biz_type,omitempty" xml:"biz_type,omitempty"`
}

ParamDto 结构体

func GetParamDto added in v1.3.4

func GetParamDto() *ParamDto

GetParamDto() 从对象池中获取ParamDto

type RichClientInfo

type RichClientInfo struct {
	// appkey
	Appkey string `json:"appkey,omitempty" xml:"appkey,omitempty"`
	// 用户昵称
	BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"`
	// 经度
	Lng string `json:"lng,omitempty" xml:"lng,omitempty"`
	// 纬度
	Lat string `json:"lat,omitempty" xml:"lat,omitempty"`
	// 设备号
	DeviceId string `json:"device_id,omitempty" xml:"device_id,omitempty"`
	// 来源ip
	Ip string `json:"ip,omitempty" xml:"ip,omitempty"`
	// 用户id
	BuyerId int64 `json:"buyer_id,omitempty" xml:"buyer_id,omitempty"`
}

RichClientInfo 结构体

func GetRichClientInfo added in v1.3.4

func GetRichClientInfo() *RichClientInfo

GetRichClientInfo() 从对象池中获取RichClientInfo

type TaobaoAplatformWeakgetAPIRequest added in v1.2.0

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

TaobaoAplatformWeakgetAPIRequest 活动平台弱登录接口 API请求 taobao.aplatform.weakget

无线活动平台的开放接口,提供商品信息等的读操作

func GetTaobaoAplatformWeakgetAPIRequest added in v1.3.4

func GetTaobaoAplatformWeakgetAPIRequest() *TaobaoAplatformWeakgetAPIRequest

GetTaobaoAplatformWeakgetRequest 从 sync.Pool 获取 TaobaoAplatformWeakgetAPIRequest

func NewTaobaoAplatformWeakgetRequest

func NewTaobaoAplatformWeakgetRequest() *TaobaoAplatformWeakgetAPIRequest

NewTaobaoAplatformWeakgetRequest 初始化TaobaoAplatformWeakgetAPIRequest对象

func (TaobaoAplatformWeakgetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoAplatformWeakgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoAplatformWeakgetAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoAplatformWeakgetAPIRequest) GetParamDto added in v1.2.0

func (r TaobaoAplatformWeakgetAPIRequest) GetParamDto() *ParamDto

GetParamDto ParamDto Getter

func (TaobaoAplatformWeakgetAPIRequest) GetParamRichClientInfo added in v1.2.0

func (r TaobaoAplatformWeakgetAPIRequest) GetParamRichClientInfo() *RichClientInfo

GetParamRichClientInfo ParamRichClientInfo Getter

func (TaobaoAplatformWeakgetAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoAplatformWeakgetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoAplatformWeakgetAPIRequest) SetParamDto added in v1.2.0

func (r *TaobaoAplatformWeakgetAPIRequest) SetParamDto(_paramDto *ParamDto) error

SetParamDto is ParamDto Setter 业务自定义参数

func (*TaobaoAplatformWeakgetAPIRequest) SetParamRichClientInfo added in v1.2.0

func (r *TaobaoAplatformWeakgetAPIRequest) SetParamRichClientInfo(_paramRichClientInfo *RichClientInfo) error

SetParamRichClientInfo is ParamRichClientInfo Setter 客户端自带参数

type TaobaoAplatformWeakgetAPIResponse

type TaobaoAplatformWeakgetAPIResponse struct {
	model.CommonResponse
	TaobaoAplatformWeakgetAPIResponseModel
}

TaobaoAplatformWeakgetAPIResponse 活动平台弱登录接口 API返回值 taobao.aplatform.weakget

无线活动平台的开放接口,提供商品信息等的读操作

func GetTaobaoAplatformWeakgetAPIResponse added in v1.3.4

func GetTaobaoAplatformWeakgetAPIResponse() *TaobaoAplatformWeakgetAPIResponse

GetTaobaoAplatformWeakgetAPIResponse 从 sync.Pool 获取 TaobaoAplatformWeakgetAPIResponse

func (*TaobaoAplatformWeakgetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoAplatformWeakgetAPIResponseModel added in v1.2.0

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

TaobaoAplatformWeakgetAPIResponseModel is 活动平台弱登录接口 成功返回结果

func (*TaobaoAplatformWeakgetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoAplatformWeakgetResult

type TaobaoAplatformWeakgetResult struct {
	// headers
	Headers string `json:"headers,omitempty" xml:"headers,omitempty"`
	// model
	Model string `json:"model,omitempty" xml:"model,omitempty"`
	// msgCode
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// bizExtMap
	BizExtMap string `json:"biz_ext_map,omitempty" xml:"biz_ext_map,omitempty"`
	// msgInfo
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// httpStatusCode
	HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoAplatformWeakgetResult 结构体

func GetTaobaoAplatformWeakgetResult added in v1.3.4

func GetTaobaoAplatformWeakgetResult() *TaobaoAplatformWeakgetResult

GetTaobaoAplatformWeakgetResult() 从对象池中获取TaobaoAplatformWeakgetResult

Jump to

Keyboard shortcuts

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