alime

package
v1.3.4 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: 4 Imported by: 0

Documentation

Overview

Package alime 包含小蜜API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseTaobaoAlimeUserTokenAdvanceGetAPIRequest added in v1.3.4

func ReleaseTaobaoAlimeUserTokenAdvanceGetAPIRequest(v *TaobaoAlimeUserTokenAdvanceGetAPIRequest)

ReleaseTaobaoAlimeUserTokenAdvanceGetAPIRequest 将 TaobaoAlimeUserTokenAdvanceGetAPIRequest 放入 sync.Pool

func ReleaseTaobaoAlimeUserTokenAdvanceGetAPIResponse added in v1.3.4

func ReleaseTaobaoAlimeUserTokenAdvanceGetAPIResponse(v *TaobaoAlimeUserTokenAdvanceGetAPIResponse)

ReleaseTaobaoAlimeUserTokenAdvanceGetAPIResponse 将 TaobaoAlimeUserTokenAdvanceGetAPIResponse 保存到 sync.Pool

func ReleaseTaobaoAlimeUserTokenGetAPIRequest added in v1.3.4

func ReleaseTaobaoAlimeUserTokenGetAPIRequest(v *TaobaoAlimeUserTokenGetAPIRequest)

ReleaseTaobaoAlimeUserTokenGetAPIRequest 将 TaobaoAlimeUserTokenGetAPIRequest 放入 sync.Pool

func ReleaseTaobaoAlimeUserTokenGetAPIResponse added in v1.3.4

func ReleaseTaobaoAlimeUserTokenGetAPIResponse(v *TaobaoAlimeUserTokenGetAPIResponse)

ReleaseTaobaoAlimeUserTokenGetAPIResponse 将 TaobaoAlimeUserTokenGetAPIResponse 保存到 sync.Pool

Types

type TaobaoAlimeUserTokenAdvanceGetAPIRequest

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

TaobaoAlimeUserTokenAdvanceGetAPIRequest 获取用户免登录令牌v2 API请求 taobao.alime.user.token.advance.get

根据第三账号信息获取用户的免登录令牌

func GetTaobaoAlimeUserTokenAdvanceGetAPIRequest added in v1.3.4

func GetTaobaoAlimeUserTokenAdvanceGetAPIRequest() *TaobaoAlimeUserTokenAdvanceGetAPIRequest

GetTaobaoAlimeUserTokenAdvanceGetRequest 从 sync.Pool 获取 TaobaoAlimeUserTokenAdvanceGetAPIRequest

func NewTaobaoAlimeUserTokenAdvanceGetRequest

func NewTaobaoAlimeUserTokenAdvanceGetRequest() *TaobaoAlimeUserTokenAdvanceGetAPIRequest

NewTaobaoAlimeUserTokenAdvanceGetRequest 初始化TaobaoAlimeUserTokenAdvanceGetAPIRequest对象

func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetApiMethodName

func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetExpires

GetExpires Expires Getter

func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetForeignId

GetForeignId ForeignId Getter

func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetId

GetId Id Getter

func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetNick

GetNick Nick Getter

func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetRouting

GetRouting Routing Getter

func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetSource

GetSource Source Getter

func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetType

GetType Type Getter

func (*TaobaoAlimeUserTokenAdvanceGetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetExpires

func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetExpires(_expires int64) error

SetExpires is Expires Setter 令牌的过期时间(时间为秒),最大为3600

func (*TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetForeignId

func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetForeignId(_foreignId string) error

SetForeignId is ForeignId Setter 用户在第三方账号中的唯一id

func (*TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetId

SetId is Id Setter 用户在小蜜账号中的唯一id

func (*TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetNick

SetNick is Nick Setter 用户昵称

func (*TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetRouting

func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetRouting(_routing int64) error

SetRouting is Routing Setter 路由id, 一般为用户id,用于异地容灾

func (*TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetSource

SetSource is Source Setter 小蜜分配给第三方账号的来源

func (*TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetType

SetType is Type Setter 用户类型,0为普通用户,1为访客用户

type TaobaoAlimeUserTokenAdvanceGetAPIResponse

type TaobaoAlimeUserTokenAdvanceGetAPIResponse struct {
	model.CommonResponse
	TaobaoAlimeUserTokenAdvanceGetAPIResponseModel
}

TaobaoAlimeUserTokenAdvanceGetAPIResponse 获取用户免登录令牌v2 API返回值 taobao.alime.user.token.advance.get

根据第三账号信息获取用户的免登录令牌

func GetTaobaoAlimeUserTokenAdvanceGetAPIResponse added in v1.3.4

func GetTaobaoAlimeUserTokenAdvanceGetAPIResponse() *TaobaoAlimeUserTokenAdvanceGetAPIResponse

GetTaobaoAlimeUserTokenAdvanceGetAPIResponse 从 sync.Pool 获取 TaobaoAlimeUserTokenAdvanceGetAPIResponse

func (*TaobaoAlimeUserTokenAdvanceGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoAlimeUserTokenAdvanceGetAPIResponseModel

type TaobaoAlimeUserTokenAdvanceGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alime_user_token_advance_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 响应消息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 响应数据
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// 响应编码(由于"code"为top保留字,用code0以示区分,文档中均以code说明),code == 0为成功,其它为失败
	Code0 int64 `json:"code0,omitempty" xml:"code0,omitempty"`
}

TaobaoAlimeUserTokenAdvanceGetAPIResponseModel is 获取用户免登录令牌v2 成功返回结果

func (*TaobaoAlimeUserTokenAdvanceGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoAlimeUserTokenGetAPIRequest

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

TaobaoAlimeUserTokenGetAPIRequest 获取用户免登录令牌 API请求 taobao.alime.user.token.get

根据第三账号信息获取用户的免登录令牌

func GetTaobaoAlimeUserTokenGetAPIRequest added in v1.3.4

func GetTaobaoAlimeUserTokenGetAPIRequest() *TaobaoAlimeUserTokenGetAPIRequest

GetTaobaoAlimeUserTokenGetRequest 从 sync.Pool 获取 TaobaoAlimeUserTokenGetAPIRequest

func NewTaobaoAlimeUserTokenGetRequest

func NewTaobaoAlimeUserTokenGetRequest() *TaobaoAlimeUserTokenGetAPIRequest

NewTaobaoAlimeUserTokenGetRequest 初始化TaobaoAlimeUserTokenGetAPIRequest对象

func (TaobaoAlimeUserTokenGetAPIRequest) GetApiMethodName

func (r TaobaoAlimeUserTokenGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoAlimeUserTokenGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoAlimeUserTokenGetAPIRequest) GetExpires

GetExpires Expires Getter

func (TaobaoAlimeUserTokenGetAPIRequest) GetForeignId

func (r TaobaoAlimeUserTokenGetAPIRequest) GetForeignId() string

GetForeignId ForeignId Getter

func (TaobaoAlimeUserTokenGetAPIRequest) GetId

GetId Id Getter

func (TaobaoAlimeUserTokenGetAPIRequest) GetNick

GetNick Nick Getter

func (TaobaoAlimeUserTokenGetAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoAlimeUserTokenGetAPIRequest) GetRouting

GetRouting Routing Getter

func (TaobaoAlimeUserTokenGetAPIRequest) GetSource

GetSource Source Getter

func (*TaobaoAlimeUserTokenGetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoAlimeUserTokenGetAPIRequest) SetExpires

func (r *TaobaoAlimeUserTokenGetAPIRequest) SetExpires(_expires int64) error

SetExpires is Expires Setter 令牌的过期时间(时间为秒),最大为3600

func (*TaobaoAlimeUserTokenGetAPIRequest) SetForeignId

func (r *TaobaoAlimeUserTokenGetAPIRequest) SetForeignId(_foreignId string) error

SetForeignId is ForeignId Setter 用户在第三方账号中的唯一id

func (*TaobaoAlimeUserTokenGetAPIRequest) SetId

SetId is Id Setter 用户在小蜜账号中的唯一id

func (*TaobaoAlimeUserTokenGetAPIRequest) SetNick

SetNick is Nick Setter 用户昵称

func (*TaobaoAlimeUserTokenGetAPIRequest) SetRouting

func (r *TaobaoAlimeUserTokenGetAPIRequest) SetRouting(_routing int64) error

SetRouting is Routing Setter 路由id, 一般为用户id,用于异地容灾

func (*TaobaoAlimeUserTokenGetAPIRequest) SetSource

func (r *TaobaoAlimeUserTokenGetAPIRequest) SetSource(_source int64) error

SetSource is Source Setter 小蜜分配给第三方账号的来源

type TaobaoAlimeUserTokenGetAPIResponse

type TaobaoAlimeUserTokenGetAPIResponse struct {
	model.CommonResponse
	TaobaoAlimeUserTokenGetAPIResponseModel
}

TaobaoAlimeUserTokenGetAPIResponse 获取用户免登录令牌 API返回值 taobao.alime.user.token.get

根据第三账号信息获取用户的免登录令牌

func GetTaobaoAlimeUserTokenGetAPIResponse added in v1.3.4

func GetTaobaoAlimeUserTokenGetAPIResponse() *TaobaoAlimeUserTokenGetAPIResponse

GetTaobaoAlimeUserTokenGetAPIResponse 从 sync.Pool 获取 TaobaoAlimeUserTokenGetAPIResponse

func (*TaobaoAlimeUserTokenGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoAlimeUserTokenGetAPIResponseModel

type TaobaoAlimeUserTokenGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alime_user_token_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 响应数据
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// 响应消息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 响应编码(由于"code"为top保留字,用code0以示区分,文档中均以code说明),code == 0为成功,其它为失败
	Code0 int64 `json:"code0,omitempty" xml:"code0,omitempty"`
}

TaobaoAlimeUserTokenGetAPIResponseModel is 获取用户免登录令牌 成功返回结果

func (*TaobaoAlimeUserTokenGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

Jump to

Keyboard shortcuts

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