baodian

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 baodian 包含宝点API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoinUserDepositV2

type CoinUserDepositV2 struct {
	// 账期
	CreditPeriod string `json:"credit_period,omitempty" xml:"credit_period,omitempty"`
	// 图片地址
	ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	// auth code
	UserAuthCode string `json:"user_auth_code,omitempty" xml:"user_auth_code,omitempty"`
	// 昵称
	UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"`
	// 用户 str id
	UserStrId string `json:"user_str_id,omitempty" xml:"user_str_id,omitempty"`
	// 头像地址
	AvatarUrl string `json:"avatar_url,omitempty" xml:"avatar_url,omitempty"`
	// 欠款
	Credit int64 `json:"credit,omitempty" xml:"credit,omitempty"`
	// 欠款额度
	CreditLimit int64 `json:"credit_limit,omitempty" xml:"credit_limit,omitempty"`
	// 宝点余额
	Deposit int64 `json:"deposit,omitempty" xml:"deposit,omitempty"`
	// 积分
	GamePoint int64 `json:"game_point,omitempty" xml:"game_point,omitempty"`
	// 单位数量(10个宝点)宝点价格,即10个宝点的价格
	Price int64 `json:"price,omitempty" xml:"price,omitempty"`
	// 设备授权
	DeviceAuth bool `json:"device_auth,omitempty" xml:"device_auth,omitempty"`
	// 可以付款
	EnablePay bool `json:"enable_pay,omitempty" xml:"enable_pay,omitempty"`
	// 用户是否有逾期宝点贷款
	IsExpired bool `json:"is_expired,omitempty" xml:"is_expired,omitempty"`
	// 是否开通先用后付
	IsPayAfterPlay bool `json:"is_pay_after_play,omitempty" xml:"is_pay_after_play,omitempty"`
	// 是否新用户
	NewUser bool `json:"new_user,omitempty" xml:"new_user,omitempty"`
}

CoinUserDepositV2 结构体

type GameGiftRecordDto

type GameGiftRecordDto struct {
	// cp item id
	CpItemId string `json:"cp_item_id,omitempty" xml:"cp_item_id,omitempty"`
	// 记录id
	RecordId int64 `json:"record_id,omitempty" xml:"record_id,omitempty"`
	// 记录状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
}

GameGiftRecordDto 结构体

type TaobaoBaodianDepositGetAPIRequest

type TaobaoBaodianDepositGetAPIRequest struct {
	model.Params
}

TaobaoBaodianDepositGetAPIRequest 宝点用户帐户查询(已迁移) API请求 taobao.baodian.deposit.get

查询用户宝点帐户信息及当前宝点价格

func NewTaobaoBaodianDepositGetRequest

func NewTaobaoBaodianDepositGetRequest() *TaobaoBaodianDepositGetAPIRequest

NewTaobaoBaodianDepositGetRequest 初始化TaobaoBaodianDepositGetAPIRequest对象

func (TaobaoBaodianDepositGetAPIRequest) GetApiMethodName

func (r TaobaoBaodianDepositGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoBaodianDepositGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoBaodianDepositGetAPIRequest) GetRawParams added in v1.2.8

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

type TaobaoBaodianDepositGetAPIResponse

type TaobaoBaodianDepositGetAPIResponse struct {
	model.CommonResponse
	TaobaoBaodianDepositGetAPIResponseModel
}

TaobaoBaodianDepositGetAPIResponse 宝点用户帐户查询(已迁移) API返回值 taobao.baodian.deposit.get

查询用户宝点帐户信息及当前宝点价格

type TaobaoBaodianDepositGetAPIResponseModel

type TaobaoBaodianDepositGetAPIResponseModel struct {
	XMLName xml.Name `xml:"baodian_deposit_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 用户宝点帐户信息
	UserCoinDeposit *UserCoinDeposit `json:"user_coin_deposit,omitempty" xml:"user_coin_deposit,omitempty"`
}

TaobaoBaodianDepositGetAPIResponseModel is 宝点用户帐户查询(已迁移) 成功返回结果

type TaobaoBaodianDepositGetWithSdkversionAPIRequest

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

TaobaoBaodianDepositGetWithSdkversionAPIRequest 查询用户宝点信息(带sdk版本,已迁移) API请求 taobao.baodian.deposit.get.with.sdkversion

获取用户宝点信息(带sdk版本,已迁移)

func NewTaobaoBaodianDepositGetWithSdkversionRequest

func NewTaobaoBaodianDepositGetWithSdkversionRequest() *TaobaoBaodianDepositGetWithSdkversionAPIRequest

NewTaobaoBaodianDepositGetWithSdkversionRequest 初始化TaobaoBaodianDepositGetWithSdkversionAPIRequest对象

func (TaobaoBaodianDepositGetWithSdkversionAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoBaodianDepositGetWithSdkversionAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoBaodianDepositGetWithSdkversionAPIRequest) GetDeviceModel

GetDeviceModel DeviceModel Getter

func (TaobaoBaodianDepositGetWithSdkversionAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoBaodianDepositGetWithSdkversionAPIRequest) GetSdkVersion

GetSdkVersion SdkVersion Getter

func (TaobaoBaodianDepositGetWithSdkversionAPIRequest) GetUuid

GetUuid Uuid Getter

func (*TaobaoBaodianDepositGetWithSdkversionAPIRequest) SetDeviceModel

func (r *TaobaoBaodianDepositGetWithSdkversionAPIRequest) SetDeviceModel(_deviceModel string) error

SetDeviceModel is DeviceModel Setter 设备型号

func (*TaobaoBaodianDepositGetWithSdkversionAPIRequest) SetSdkVersion

func (r *TaobaoBaodianDepositGetWithSdkversionAPIRequest) SetSdkVersion(_sdkVersion string) error

SetSdkVersion is SdkVersion Setter sdk版本

func (*TaobaoBaodianDepositGetWithSdkversionAPIRequest) SetUuid

SetUuid is Uuid Setter uuid

type TaobaoBaodianDepositGetWithSdkversionAPIResponse

type TaobaoBaodianDepositGetWithSdkversionAPIResponse struct {
	model.CommonResponse
	TaobaoBaodianDepositGetWithSdkversionAPIResponseModel
}

TaobaoBaodianDepositGetWithSdkversionAPIResponse 查询用户宝点信息(带sdk版本,已迁移) API返回值 taobao.baodian.deposit.get.with.sdkversion

获取用户宝点信息(带sdk版本,已迁移)

type TaobaoBaodianDepositGetWithSdkversionAPIResponseModel

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

TaobaoBaodianDepositGetWithSdkversionAPIResponseModel is 查询用户宝点信息(带sdk版本,已迁移) 成功返回结果

type TaobaoBaodianServerDateGetAPIRequest

type TaobaoBaodianServerDateGetAPIRequest struct {
	model.Params
}

TaobaoBaodianServerDateGetAPIRequest 服务器时间获取 API请求 taobao.baodian.server.date.get

获取服务器时间

func NewTaobaoBaodianServerDateGetRequest

func NewTaobaoBaodianServerDateGetRequest() *TaobaoBaodianServerDateGetAPIRequest

NewTaobaoBaodianServerDateGetRequest 初始化TaobaoBaodianServerDateGetAPIRequest对象

func (TaobaoBaodianServerDateGetAPIRequest) GetApiMethodName

func (r TaobaoBaodianServerDateGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoBaodianServerDateGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoBaodianServerDateGetAPIRequest) GetRawParams added in v1.2.8

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

type TaobaoBaodianServerDateGetAPIResponse

type TaobaoBaodianServerDateGetAPIResponse struct {
	model.CommonResponse
	TaobaoBaodianServerDateGetAPIResponseModel
}

TaobaoBaodianServerDateGetAPIResponse 服务器时间获取 API返回值 taobao.baodian.server.date.get

获取服务器时间

type TaobaoBaodianServerDateGetAPIResponseModel

type TaobaoBaodianServerDateGetAPIResponseModel struct {
	XMLName xml.Name `xml:"baodian_server_date_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回时间为毫秒
	ServerDate int64 `json:"server_date,omitempty" xml:"server_date,omitempty"`
}

TaobaoBaodianServerDateGetAPIResponseModel is 服务器时间获取 成功返回结果

type TaobaoBaodianServerSdkConfigGetAPIRequest

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

TaobaoBaodianServerSdkConfigGetAPIRequest 获取宝点SDK的配置项(已迁移) API请求 taobao.baodian.server.sdk.config.get

获取SDK各种配置项(已迁移)

func NewTaobaoBaodianServerSdkConfigGetRequest

func NewTaobaoBaodianServerSdkConfigGetRequest() *TaobaoBaodianServerSdkConfigGetAPIRequest

NewTaobaoBaodianServerSdkConfigGetRequest 初始化TaobaoBaodianServerSdkConfigGetAPIRequest对象

func (TaobaoBaodianServerSdkConfigGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoBaodianServerSdkConfigGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoBaodianServerSdkConfigGetAPIRequest) GetAppkey

GetAppkey Appkey Getter

func (TaobaoBaodianServerSdkConfigGetAPIRequest) GetChannel

GetChannel Channel Getter

func (TaobaoBaodianServerSdkConfigGetAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoBaodianServerSdkConfigGetAPIRequest) GetSdkVer

GetSdkVer SdkVer Getter

func (TaobaoBaodianServerSdkConfigGetAPIRequest) GetType

GetType Type Getter

func (*TaobaoBaodianServerSdkConfigGetAPIRequest) SetAppkey

SetAppkey is Appkey Setter appKey

func (*TaobaoBaodianServerSdkConfigGetAPIRequest) SetChannel

func (r *TaobaoBaodianServerSdkConfigGetAPIRequest) SetChannel(_channel string) error

SetChannel is Channel Setter 渠道

func (*TaobaoBaodianServerSdkConfigGetAPIRequest) SetSdkVer

SetSdkVer is SdkVer Setter sdk版本号

func (*TaobaoBaodianServerSdkConfigGetAPIRequest) SetType

SetType is Type Setter 与后端约定

type TaobaoBaodianServerSdkConfigGetAPIResponse

type TaobaoBaodianServerSdkConfigGetAPIResponse struct {
	model.CommonResponse
	TaobaoBaodianServerSdkConfigGetAPIResponseModel
}

TaobaoBaodianServerSdkConfigGetAPIResponse 获取宝点SDK的配置项(已迁移) API返回值 taobao.baodian.server.sdk.config.get

获取SDK各种配置项(已迁移)

type TaobaoBaodianServerSdkConfigGetAPIResponseModel

type TaobaoBaodianServerSdkConfigGetAPIResponseModel struct {
	XMLName xml.Name `xml:"baodian_server_sdk_config_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回sdk配置的字符串
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoBaodianServerSdkConfigGetAPIResponseModel is 获取宝点SDK的配置项(已迁移) 成功返回结果

type TaobaoDegUserGamegiftQueryAPIRequest

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

TaobaoDegUserGamegiftQueryAPIRequest 用户数娱游戏礼包查询 API请求 taobao.deg.user.gamegift.query

查询用户数娱礼包列表

func NewTaobaoDegUserGamegiftQueryRequest

func NewTaobaoDegUserGamegiftQueryRequest() *TaobaoDegUserGamegiftQueryAPIRequest

NewTaobaoDegUserGamegiftQueryRequest 初始化TaobaoDegUserGamegiftQueryAPIRequest对象

func (TaobaoDegUserGamegiftQueryAPIRequest) GetApiMethodName

func (r TaobaoDegUserGamegiftQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoDegUserGamegiftQueryAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoDegUserGamegiftQueryAPIRequest) GetCpItemIds

func (r TaobaoDegUserGamegiftQueryAPIRequest) GetCpItemIds() []string

GetCpItemIds CpItemIds Getter

func (TaobaoDegUserGamegiftQueryAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoDegUserGamegiftQueryAPIRequest) GetStatus

GetStatus Status Getter

func (*TaobaoDegUserGamegiftQueryAPIRequest) SetCpItemIds

func (r *TaobaoDegUserGamegiftQueryAPIRequest) SetCpItemIds(_cpItemIds []string) error

SetCpItemIds is CpItemIds Setter cp item id列表

func (*TaobaoDegUserGamegiftQueryAPIRequest) SetStatus

func (r *TaobaoDegUserGamegiftQueryAPIRequest) SetStatus(_status int64) error

SetStatus is Status Setter 状态,1为待发放,2为已发放,3为过期

type TaobaoDegUserGamegiftQueryAPIResponse

type TaobaoDegUserGamegiftQueryAPIResponse struct {
	model.CommonResponse
	TaobaoDegUserGamegiftQueryAPIResponseModel
}

TaobaoDegUserGamegiftQueryAPIResponse 用户数娱游戏礼包查询 API返回值 taobao.deg.user.gamegift.query

查询用户数娱礼包列表

type TaobaoDegUserGamegiftQueryAPIResponseModel

type TaobaoDegUserGamegiftQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"deg_user_gamegift_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 礼包信息
	Records []GameGiftRecordDto `json:"records,omitempty" xml:"records>game_gift_record_dto,omitempty"`
}

TaobaoDegUserGamegiftQueryAPIResponseModel is 用户数娱游戏礼包查询 成功返回结果

type UserCoinDeposit

type UserCoinDeposit struct {
	// 用户AuthCode
	UserAuthCode string `json:"userAuthCode,omitempty" xml:"userAuthCode,omitempty"`
	// 宝点用户体系中的用户字符串ID
	UserStrId string `json:"user_str_id,omitempty" xml:"user_str_id,omitempty"`
	// 在数娱用户体系中的用户昵称,如果未设置则默认返回淘宝的用户名
	UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"`
	// 当前的信用帐期,即还款期截止日
	CreditPeriod string `json:"credit_period,omitempty" xml:"credit_period,omitempty"`
	// 当前宝点帐户余额,即当前宝点数
	Deposit int64 `json:"deposit,omitempty" xml:"deposit,omitempty"`
	// 当前信用赊欠宝点数
	Credit int64 `json:"credit,omitempty" xml:"credit,omitempty"`
	// 用户当前可用的信用消费的额度,即还可以赊欠多少宝点
	CreditLimit int64 `json:"credit_limit,omitempty" xml:"credit_limit,omitempty"`
	// 单位数量(10个宝点)宝点价格,即10个宝点的价格
	Price int64 `json:"price,omitempty" xml:"price,omitempty"`
	// 用户积分数量
	Gamepoints int64 `json:"gamepoints,omitempty" xml:"gamepoints,omitempty"`
	// 用户是否有逾期宝点贷款
	IsExpired bool `json:"is_expired,omitempty" xml:"is_expired,omitempty"`
	// 能否支付
	EnablePay bool `json:"enable_pay,omitempty" xml:"enable_pay,omitempty"`
	// 是否新注册用户
	NewUser bool `json:"new_user,omitempty" xml:"new_user,omitempty"`
}

UserCoinDeposit 结构体

Jump to

Keyboard shortcuts

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