topoaid

package
v1.2.9 Latest Latest
Warning

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

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

Documentation

Overview

Package topoaid 包含隐私保护API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthScopeCheckRequest added in v1.2.8

type AuthScopeCheckRequest struct {
	// 用户手机号
	Mobile string `json:"mobile,omitempty" xml:"mobile,omitempty"`
	// 从context中获取的用户标识
	OpenId string `json:"open_id,omitempty" xml:"open_id,omitempty"`
}

AuthScopeCheckRequest 结构体

type AuthScopeCheckResponse added in v1.2.8

type AuthScopeCheckResponse struct {
	// 授权列表
	ScopeNames []string `json:"scope_names,omitempty" xml:"scope_names>string,omitempty"`
	// 授权到期时间
	ExpireTime string `json:"expire_time,omitempty" xml:"expire_time,omitempty"`
}

AuthScopeCheckResponse 结构体

type CrmPrivacyResponse added in v1.2.5

type CrmPrivacyResponse struct {
	// omid
	Omid string `json:"omid,omitempty" xml:"omid,omitempty"`
	// ouid
	Ouid string `json:"ouid,omitempty" xml:"ouid,omitempty"`
}

CrmPrivacyResponse 结构体

type IsPrivacyPackageRequest added in v1.2.8

type IsPrivacyPackageRequest struct {
	// 运单号
	MailNo string `json:"mail_no,omitempty" xml:"mail_no,omitempty"`
	// 快递公司编码
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
	// 柜机黑名单手机号前7位,如有多个用英文逗号,分隔,每个元素仅前七位有效
	BlackMobiles string `json:"black_mobiles,omitempty" xml:"black_mobiles,omitempty"`
}

IsPrivacyPackageRequest 结构体

type IsPrivacyPackageResponse added in v1.2.8

type IsPrivacyPackageResponse struct {
	// 用户授权信息
	UserAuthInfos []UserAuthInfo `json:"user_auth_infos,omitempty" xml:"user_auth_infos>user_auth_info,omitempty"`
	// 是否为隐私包裹
	PrivacyPackage bool `json:"privacy_package,omitempty" xml:"privacy_package,omitempty"`
}

IsPrivacyPackageResponse 结构体

type PackageInfo added in v1.2.8

type PackageInfo struct {
	// 运单号
	MailNo string `json:"mail_no,omitempty" xml:"mail_no,omitempty"`
	// 订单隐私号
	SecretNo string `json:"secret_no,omitempty" xml:"secret_no,omitempty"`
	// 隐私号过期时间
	SecretNoExpireTime string `json:"secret_no_expire_time,omitempty" xml:"secret_no_expire_time,omitempty"`
	// 收件人手机号,如果用户未授权手机号则不返回
	ReceiverMobile string `json:"receiver_mobile,omitempty" xml:"receiver_mobile,omitempty"`
	// 快递公司代码
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
	// 代收点类型
	StationType string `json:"station_type,omitempty" xml:"station_type,omitempty"`
	// 是否为隐私订单
	PrivacyOrder bool `json:"privacy_order,omitempty" xml:"privacy_order,omitempty"`
}

PackageInfo 结构体

type QueryPackageListRequest added in v1.2.8

type QueryPackageListRequest struct {
	// 用户包裹的身份,淘宝账号/收件人
	QueryRole string `json:"query_role,omitempty" xml:"query_role,omitempty"`
	// 末端类型
	StationType string `json:"station_type,omitempty" xml:"station_type,omitempty"`
	// 用户的唯一标识
	OpenId string `json:"open_id,omitempty" xml:"open_id,omitempty"`
	// 客服场景:CUSTOM,可查询已取件15天内和未取件包裹,收件场景:RECEIVE,仅可查询未取件包裹
	Scene string `json:"scene,omitempty" xml:"scene,omitempty"`
	// 收件人手机号
	Mobile string `json:"mobile,omitempty" xml:"mobile,omitempty"`
	// 1-淘宝端
	OrderShowApp int64 `json:"order_show_app,omitempty" xml:"order_show_app,omitempty"`
	// 页数,从1开始
	PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"`
	// 页大小
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
}

QueryPackageListRequest 结构体

type TaobaoCrmHistoryOmidGetAPIRequest added in v1.2.5

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

TaobaoCrmHistoryOmidGetAPIRequest 根据buyerNick获取omid API请求 taobao.crm.history.omid.get

根据buyerNick获取ouid

func NewTaobaoCrmHistoryOmidGetRequest added in v1.2.5

func NewTaobaoCrmHistoryOmidGetRequest() *TaobaoCrmHistoryOmidGetAPIRequest

NewTaobaoCrmHistoryOmidGetRequest 初始化TaobaoCrmHistoryOmidGetAPIRequest对象

func (TaobaoCrmHistoryOmidGetAPIRequest) GetApiMethodName added in v1.2.5

func (r TaobaoCrmHistoryOmidGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoCrmHistoryOmidGetAPIRequest) GetApiParams added in v1.2.5

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoCrmHistoryOmidGetAPIRequest) GetBuyerNick added in v1.2.5

func (r TaobaoCrmHistoryOmidGetAPIRequest) GetBuyerNick() string

GetBuyerNick BuyerNick Getter

func (TaobaoCrmHistoryOmidGetAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoCrmHistoryOmidGetAPIRequest) SetBuyerNick added in v1.2.5

func (r *TaobaoCrmHistoryOmidGetAPIRequest) SetBuyerNick(_buyerNick string) error

SetBuyerNick is BuyerNick Setter 买家淘宝Nick

type TaobaoCrmHistoryOmidGetAPIResponse added in v1.2.5

type TaobaoCrmHistoryOmidGetAPIResponse struct {
	model.CommonResponse
	TaobaoCrmHistoryOmidGetAPIResponseModel
}

TaobaoCrmHistoryOmidGetAPIResponse 根据buyerNick获取omid API返回值 taobao.crm.history.omid.get

根据buyerNick获取ouid

type TaobaoCrmHistoryOmidGetAPIResponseModel added in v1.2.5

type TaobaoCrmHistoryOmidGetAPIResponseModel struct {
	XMLName xml.Name `xml:"crm_history_omid_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Data *CrmPrivacyResponse `json:"data,omitempty" xml:"data,omitempty"`
}

TaobaoCrmHistoryOmidGetAPIResponseModel is 根据buyerNick获取omid 成功返回结果

type TaobaoCrmHistoryOuidGetAPIRequest added in v1.2.5

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

TaobaoCrmHistoryOuidGetAPIRequest 根据buyerNick获取ouid API请求 taobao.crm.history.ouid.get

根据buyerNick获取ouid

func NewTaobaoCrmHistoryOuidGetRequest added in v1.2.5

func NewTaobaoCrmHistoryOuidGetRequest() *TaobaoCrmHistoryOuidGetAPIRequest

NewTaobaoCrmHistoryOuidGetRequest 初始化TaobaoCrmHistoryOuidGetAPIRequest对象

func (TaobaoCrmHistoryOuidGetAPIRequest) GetApiMethodName added in v1.2.5

func (r TaobaoCrmHistoryOuidGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoCrmHistoryOuidGetAPIRequest) GetApiParams added in v1.2.5

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoCrmHistoryOuidGetAPIRequest) GetBuyerNick added in v1.2.5

func (r TaobaoCrmHistoryOuidGetAPIRequest) GetBuyerNick() string

GetBuyerNick BuyerNick Getter

func (TaobaoCrmHistoryOuidGetAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoCrmHistoryOuidGetAPIRequest) SetBuyerNick added in v1.2.5

func (r *TaobaoCrmHistoryOuidGetAPIRequest) SetBuyerNick(_buyerNick string) error

SetBuyerNick is BuyerNick Setter 买家淘宝Nick

type TaobaoCrmHistoryOuidGetAPIResponse added in v1.2.5

type TaobaoCrmHistoryOuidGetAPIResponse struct {
	model.CommonResponse
	TaobaoCrmHistoryOuidGetAPIResponseModel
}

TaobaoCrmHistoryOuidGetAPIResponse 根据buyerNick获取ouid API返回值 taobao.crm.history.ouid.get

根据buyerNick获取ouid

type TaobaoCrmHistoryOuidGetAPIResponseModel added in v1.2.5

type TaobaoCrmHistoryOuidGetAPIResponseModel struct {
	XMLName xml.Name `xml:"crm_history_ouid_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Data *CrmPrivacyResponse `json:"data,omitempty" xml:"data,omitempty"`
}

TaobaoCrmHistoryOuidGetAPIResponseModel is 根据buyerNick获取ouid 成功返回结果

type TaobaoTopPackageAuthCheckAPIRequest added in v1.2.8

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

TaobaoTopPackageAuthCheckAPIRequest 校验用户授权关系 API请求 taobao.top.package.auth.check

校验用户授权关系

func NewTaobaoTopPackageAuthCheckRequest added in v1.2.8

func NewTaobaoTopPackageAuthCheckRequest() *TaobaoTopPackageAuthCheckAPIRequest

NewTaobaoTopPackageAuthCheckRequest 初始化TaobaoTopPackageAuthCheckAPIRequest对象

func (TaobaoTopPackageAuthCheckAPIRequest) GetApiMethodName added in v1.2.8

func (r TaobaoTopPackageAuthCheckAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTopPackageAuthCheckAPIRequest) GetApiParams added in v1.2.8

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTopPackageAuthCheckAPIRequest) GetAuthScopeCheckRequest added in v1.2.8

func (r TaobaoTopPackageAuthCheckAPIRequest) GetAuthScopeCheckRequest() *AuthScopeCheckRequest

GetAuthScopeCheckRequest AuthScopeCheckRequest Getter

func (TaobaoTopPackageAuthCheckAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoTopPackageAuthCheckAPIRequest) SetAuthScopeCheckRequest added in v1.2.8

func (r *TaobaoTopPackageAuthCheckAPIRequest) SetAuthScopeCheckRequest(_authScopeCheckRequest *AuthScopeCheckRequest) error

SetAuthScopeCheckRequest is AuthScopeCheckRequest Setter 权限校验入参

type TaobaoTopPackageAuthCheckAPIResponse added in v1.2.8

type TaobaoTopPackageAuthCheckAPIResponse struct {
	model.CommonResponse
	TaobaoTopPackageAuthCheckAPIResponseModel
}

TaobaoTopPackageAuthCheckAPIResponse 校验用户授权关系 API返回值 taobao.top.package.auth.check

校验用户授权关系

type TaobaoTopPackageAuthCheckAPIResponseModel added in v1.2.8

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

TaobaoTopPackageAuthCheckAPIResponseModel is 校验用户授权关系 成功返回结果

type TaobaoTopPackageAuthInfoGetAPIRequest added in v1.2.8

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

TaobaoTopPackageAuthInfoGetAPIRequest 淘宝末端包裹信息获取 API请求 taobao.top.package.auth.info.get

淘宝末端包裹信息获取

func NewTaobaoTopPackageAuthInfoGetRequest added in v1.2.8

func NewTaobaoTopPackageAuthInfoGetRequest() *TaobaoTopPackageAuthInfoGetAPIRequest

NewTaobaoTopPackageAuthInfoGetRequest 初始化TaobaoTopPackageAuthInfoGetAPIRequest对象

func (TaobaoTopPackageAuthInfoGetAPIRequest) GetApiMethodName added in v1.2.8

func (r TaobaoTopPackageAuthInfoGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTopPackageAuthInfoGetAPIRequest) GetApiParams added in v1.2.8

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTopPackageAuthInfoGetAPIRequest) GetIsPrivacyPackageRequest added in v1.2.8

func (r TaobaoTopPackageAuthInfoGetAPIRequest) GetIsPrivacyPackageRequest() *IsPrivacyPackageRequest

GetIsPrivacyPackageRequest IsPrivacyPackageRequest Getter

func (TaobaoTopPackageAuthInfoGetAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoTopPackageAuthInfoGetAPIRequest) SetIsPrivacyPackageRequest added in v1.2.8

func (r *TaobaoTopPackageAuthInfoGetAPIRequest) SetIsPrivacyPackageRequest(_isPrivacyPackageRequest *IsPrivacyPackageRequest) error

SetIsPrivacyPackageRequest is IsPrivacyPackageRequest Setter 查询类

type TaobaoTopPackageAuthInfoGetAPIResponse added in v1.2.8

type TaobaoTopPackageAuthInfoGetAPIResponse struct {
	model.CommonResponse
	TaobaoTopPackageAuthInfoGetAPIResponseModel
}

TaobaoTopPackageAuthInfoGetAPIResponse 淘宝末端包裹信息获取 API返回值 taobao.top.package.auth.info.get

淘宝末端包裹信息获取

type TaobaoTopPackageAuthInfoGetAPIResponseModel added in v1.2.8

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

TaobaoTopPackageAuthInfoGetAPIResponseModel is 淘宝末端包裹信息获取 成功返回结果

type TaobaoTopPackageQueryAPIRequest added in v1.2.8

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

TaobaoTopPackageQueryAPIRequest 淘系包裹查询 API请求 taobao.top.package.query

淘系包裹查询

func NewTaobaoTopPackageQueryRequest added in v1.2.8

func NewTaobaoTopPackageQueryRequest() *TaobaoTopPackageQueryAPIRequest

NewTaobaoTopPackageQueryRequest 初始化TaobaoTopPackageQueryAPIRequest对象

func (TaobaoTopPackageQueryAPIRequest) GetApiMethodName added in v1.2.8

func (r TaobaoTopPackageQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTopPackageQueryAPIRequest) GetApiParams added in v1.2.8

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTopPackageQueryAPIRequest) GetQueryPackageListRequest added in v1.2.8

func (r TaobaoTopPackageQueryAPIRequest) GetQueryPackageListRequest() *QueryPackageListRequest

GetQueryPackageListRequest QueryPackageListRequest Getter

func (TaobaoTopPackageQueryAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoTopPackageQueryAPIRequest) GetRawParams() model.Params

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

func (*TaobaoTopPackageQueryAPIRequest) SetQueryPackageListRequest added in v1.2.8

func (r *TaobaoTopPackageQueryAPIRequest) SetQueryPackageListRequest(_queryPackageListRequest *QueryPackageListRequest) error

SetQueryPackageListRequest is QueryPackageListRequest Setter 查询用户的包裹列表

type TaobaoTopPackageQueryAPIResponse added in v1.2.8

type TaobaoTopPackageQueryAPIResponse struct {
	model.CommonResponse
	TaobaoTopPackageQueryAPIResponseModel
}

TaobaoTopPackageQueryAPIResponse 淘系包裹查询 API返回值 taobao.top.package.query

淘系包裹查询

type TaobaoTopPackageQueryAPIResponseModel added in v1.2.8

type TaobaoTopPackageQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"top_package_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 包裹信息列表
	Data []PackageInfo `json:"data,omitempty" xml:"data>package_info,omitempty"`
	// 面单总数量
	TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"`
}

TaobaoTopPackageQueryAPIResponseModel is 淘系包裹查询 成功返回结果

type TaobaoTopPackageUnauthQueryAPIRequest added in v1.2.8

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

TaobaoTopPackageUnauthQueryAPIRequest 查询某手机号下的包裹 API请求 taobao.top.package.unauth.query

查询某手机号下的包裹

func NewTaobaoTopPackageUnauthQueryRequest added in v1.2.8

func NewTaobaoTopPackageUnauthQueryRequest() *TaobaoTopPackageUnauthQueryAPIRequest

NewTaobaoTopPackageUnauthQueryRequest 初始化TaobaoTopPackageUnauthQueryAPIRequest对象

func (TaobaoTopPackageUnauthQueryAPIRequest) GetApiMethodName added in v1.2.8

func (r TaobaoTopPackageUnauthQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTopPackageUnauthQueryAPIRequest) GetApiParams added in v1.2.8

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTopPackageUnauthQueryAPIRequest) GetQueryPackageListRequest added in v1.2.8

func (r TaobaoTopPackageUnauthQueryAPIRequest) GetQueryPackageListRequest() *QueryPackageListRequest

GetQueryPackageListRequest QueryPackageListRequest Getter

func (TaobaoTopPackageUnauthQueryAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoTopPackageUnauthQueryAPIRequest) SetQueryPackageListRequest added in v1.2.8

func (r *TaobaoTopPackageUnauthQueryAPIRequest) SetQueryPackageListRequest(_queryPackageListRequest *QueryPackageListRequest) error

SetQueryPackageListRequest is QueryPackageListRequest Setter 查询包裹请求

type TaobaoTopPackageUnauthQueryAPIResponse added in v1.2.8

type TaobaoTopPackageUnauthQueryAPIResponse struct {
	model.CommonResponse
	TaobaoTopPackageUnauthQueryAPIResponseModel
}

TaobaoTopPackageUnauthQueryAPIResponse 查询某手机号下的包裹 API返回值 taobao.top.package.unauth.query

查询某手机号下的包裹

type TaobaoTopPackageUnauthQueryAPIResponseModel added in v1.2.8

type TaobaoTopPackageUnauthQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"top_package_unauth_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 包裹信息
	Data []PackageInfo `json:"data,omitempty" xml:"data>package_info,omitempty"`
	// 总数量
	TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"`
}

TaobaoTopPackageUnauthQueryAPIResponseModel is 查询某手机号下的包裹 成功返回结果

type UserAuthInfo added in v1.2.8

type UserAuthInfo struct {
	// 收件人手机号
	Mobile string `json:"mobile,omitempty" xml:"mobile,omitempty"`
	// 授权信息过期时间
	AuthorizeExpireTime string `json:"authorize_expire_time,omitempty" xml:"authorize_expire_time,omitempty"`
	// 用户唯一标识
	OpenId string `json:"open_id,omitempty" xml:"open_id,omitempty"`
	// 虚拟号
	SecretNo string `json:"secret_no,omitempty" xml:"secret_no,omitempty"`
	// 虚拟号过期时间
	SecretExpireTime string `json:"secret_expire_time,omitempty" xml:"secret_expire_time,omitempty"`
	// 运单所属快递公司code
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
	// 收件人手机号是否为虚拟号主号(虚拟号前11位)
	MainSecretNo bool `json:"main_secret_no,omitempty" xml:"main_secret_no,omitempty"`
	// 收件人手机号是否在柜机黑名单中
	Black bool `json:"black,omitempty" xml:"black,omitempty"`
}

UserAuthInfo 结构体

Jump to

Keyboard shortcuts

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