mc

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mc 包含云码API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliyunUnimktTaskChargeLaunchAPIRequest added in v1.2.0

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

AliyunUnimktTaskChargeLaunchAPIRequest 云码权益查询 API请求 aliyun.unimkt.task.charge.launch

云码线上流量投放链路,用于判断用户是否有匹配的投放计划

func NewAliyunUnimktTaskChargeLaunchRequest

func NewAliyunUnimktTaskChargeLaunchRequest() *AliyunUnimktTaskChargeLaunchAPIRequest

NewAliyunUnimktTaskChargeLaunchRequest 初始化AliyunUnimktTaskChargeLaunchAPIRequest对象

func (AliyunUnimktTaskChargeLaunchAPIRequest) GetAlipayOpenId added in v1.2.0

func (r AliyunUnimktTaskChargeLaunchAPIRequest) GetAlipayOpenId() string

GetAlipayOpenId AlipayOpenId Getter

func (AliyunUnimktTaskChargeLaunchAPIRequest) GetApiMethodName added in v1.2.0

func (r AliyunUnimktTaskChargeLaunchAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunUnimktTaskChargeLaunchAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunUnimktTaskChargeLaunchAPIRequest) GetChannelId added in v1.2.0

GetChannelId ChannelId Getter

func (AliyunUnimktTaskChargeLaunchAPIRequest) GetExtra added in v1.2.0

GetExtra Extra Getter

func (AliyunUnimktTaskChargeLaunchAPIRequest) GetUrlId added in v1.2.0

GetUrlId UrlId Getter

func (AliyunUnimktTaskChargeLaunchAPIRequest) GetUserId added in v1.2.0

GetUserId UserId Getter

func (*AliyunUnimktTaskChargeLaunchAPIRequest) SetAlipayOpenId added in v1.2.0

func (r *AliyunUnimktTaskChargeLaunchAPIRequest) SetAlipayOpenId(_alipayOpenId string) error

SetAlipayOpenId is AlipayOpenId Setter 支付宝openID

func (*AliyunUnimktTaskChargeLaunchAPIRequest) SetChannelId added in v1.2.0

func (r *AliyunUnimktTaskChargeLaunchAPIRequest) SetChannelId(_channelId string) error

SetChannelId is ChannelId Setter 渠道ID

func (*AliyunUnimktTaskChargeLaunchAPIRequest) SetExtra added in v1.2.0

SetExtra is Extra Setter 服务商附加url参数

func (*AliyunUnimktTaskChargeLaunchAPIRequest) SetUrlId added in v1.2.0

SetUrlId is UrlId Setter urlID

func (*AliyunUnimktTaskChargeLaunchAPIRequest) SetUserId added in v1.2.0

func (r *AliyunUnimktTaskChargeLaunchAPIRequest) SetUserId(_userId string) error

SetUserId is UserId Setter 淘宝ID

type AliyunUnimktTaskChargeLaunchAPIResponse

type AliyunUnimktTaskChargeLaunchAPIResponse struct {
	model.CommonResponse
	AliyunUnimktTaskChargeLaunchAPIResponseModel
}

AliyunUnimktTaskChargeLaunchAPIResponse 云码权益查询 API返回值 aliyun.unimkt.task.charge.launch

云码线上流量投放链路,用于判断用户是否有匹配的投放计划

type AliyunUnimktTaskChargeLaunchAPIResponseModel added in v1.2.0

type AliyunUnimktTaskChargeLaunchAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_unimkt_task_charge_launch_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误消息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 任务结果
	Result string `json:"result,omitempty" xml:"result,omitempty"`
	// 错误码
	TaskErrorCode int64 `json:"task_error_code,omitempty" xml:"task_error_code,omitempty"`
	// 执行结果
	TaskSuccess bool `json:"task_success,omitempty" xml:"task_success,omitempty"`
}

AliyunUnimktTaskChargeLaunchAPIResponseModel is 云码权益查询 成功返回结果

type TaskDto

type TaskDto struct {
	// 投放计划名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 开始时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 投放计划id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

TaskDto 结构体

type TmallMcDeviceCircleCheckAPIRequest added in v1.2.0

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

TmallMcDeviceCircleCheckAPIRequest 云码设备圈选情况查询 API请求 tmall.mc.device.circle.check

云码设备圈选情况查询

func NewTmallMcDeviceCircleCheckRequest

func NewTmallMcDeviceCircleCheckRequest() *TmallMcDeviceCircleCheckAPIRequest

NewTmallMcDeviceCircleCheckRequest 初始化TmallMcDeviceCircleCheckAPIRequest对象

func (TmallMcDeviceCircleCheckAPIRequest) GetApiMethodName added in v1.2.0

func (r TmallMcDeviceCircleCheckAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallMcDeviceCircleCheckAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TmallMcDeviceCircleCheckAPIRequest) GetChannelId added in v1.2.0

func (r TmallMcDeviceCircleCheckAPIRequest) GetChannelId() string

GetChannelId ChannelId Getter

func (TmallMcDeviceCircleCheckAPIRequest) GetOuterCode added in v1.2.0

func (r TmallMcDeviceCircleCheckAPIRequest) GetOuterCode() string

GetOuterCode OuterCode Getter

func (*TmallMcDeviceCircleCheckAPIRequest) SetChannelId added in v1.2.0

func (r *TmallMcDeviceCircleCheckAPIRequest) SetChannelId(_channelId string) error

SetChannelId is ChannelId Setter 渠道编码

func (*TmallMcDeviceCircleCheckAPIRequest) SetOuterCode added in v1.2.0

func (r *TmallMcDeviceCircleCheckAPIRequest) SetOuterCode(_outerCode string) error

SetOuterCode is OuterCode Setter 外部设备编码

type TmallMcDeviceCircleCheckAPIResponse

type TmallMcDeviceCircleCheckAPIResponse struct {
	model.CommonResponse
	TmallMcDeviceCircleCheckAPIResponseModel
}

TmallMcDeviceCircleCheckAPIResponse 云码设备圈选情况查询 API返回值 tmall.mc.device.circle.check

云码设备圈选情况查询

type TmallMcDeviceCircleCheckAPIResponseModel added in v1.2.0

type TmallMcDeviceCircleCheckAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_mc_device_circle_check_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 设备相关投放计划
	Results []TaskDto `json:"results,omitempty" xml:"results>task_dto,omitempty"`
}

TmallMcDeviceCircleCheckAPIResponseModel is 云码设备圈选情况查询 成功返回结果

type TmallMcRecordOrderSyncAPIRequest added in v1.2.0

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

TmallMcRecordOrderSyncAPIRequest 订单信息同步 API请求 tmall.mc.record.order.sync

订单信息同步(零售云接口)

func NewTmallMcRecordOrderSyncRequest

func NewTmallMcRecordOrderSyncRequest() *TmallMcRecordOrderSyncAPIRequest

NewTmallMcRecordOrderSyncRequest 初始化TmallMcRecordOrderSyncAPIRequest对象

func (TmallMcRecordOrderSyncAPIRequest) GetApiMethodName added in v1.2.0

func (r TmallMcRecordOrderSyncAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallMcRecordOrderSyncAPIRequest) GetApiParams added in v1.2.0

func (r TmallMcRecordOrderSyncAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TmallMcRecordOrderSyncAPIRequest) GetDeviceCode added in v1.2.0

func (r TmallMcRecordOrderSyncAPIRequest) GetDeviceCode() string

GetDeviceCode DeviceCode Getter

func (TmallMcRecordOrderSyncAPIRequest) GetOpenId added in v1.2.0

GetOpenId OpenId Getter

func (TmallMcRecordOrderSyncAPIRequest) GetOriginPrice added in v1.2.0

func (r TmallMcRecordOrderSyncAPIRequest) GetOriginPrice() int64

GetOriginPrice OriginPrice Getter

func (TmallMcRecordOrderSyncAPIRequest) GetPayPrice added in v1.2.0

func (r TmallMcRecordOrderSyncAPIRequest) GetPayPrice() int64

GetPayPrice PayPrice Getter

func (TmallMcRecordOrderSyncAPIRequest) GetResult added in v1.2.0

GetResult Result Getter

func (TmallMcRecordOrderSyncAPIRequest) GetVersion added in v1.2.0

GetVersion Version Getter

func (*TmallMcRecordOrderSyncAPIRequest) SetDeviceCode added in v1.2.0

func (r *TmallMcRecordOrderSyncAPIRequest) SetDeviceCode(_deviceCode string) error

SetDeviceCode is DeviceCode Setter 设备编码

func (*TmallMcRecordOrderSyncAPIRequest) SetOpenId added in v1.2.0

func (r *TmallMcRecordOrderSyncAPIRequest) SetOpenId(_openId string) error

SetOpenId is OpenId Setter 用户openId

func (*TmallMcRecordOrderSyncAPIRequest) SetOriginPrice added in v1.2.0

func (r *TmallMcRecordOrderSyncAPIRequest) SetOriginPrice(_originPrice int64) error

SetOriginPrice is OriginPrice Setter 原价

func (*TmallMcRecordOrderSyncAPIRequest) SetPayPrice added in v1.2.0

func (r *TmallMcRecordOrderSyncAPIRequest) SetPayPrice(_payPrice int64) error

SetPayPrice is PayPrice Setter 实付价

func (*TmallMcRecordOrderSyncAPIRequest) SetResult added in v1.2.0

func (r *TmallMcRecordOrderSyncAPIRequest) SetResult(_result string) error

SetResult is Result Setter 核销结果

func (*TmallMcRecordOrderSyncAPIRequest) SetVersion added in v1.2.0

func (r *TmallMcRecordOrderSyncAPIRequest) SetVersion(_version string) error

SetVersion is Version Setter 云码版本号

type TmallMcRecordOrderSyncAPIResponse

type TmallMcRecordOrderSyncAPIResponse struct {
	model.CommonResponse
	TmallMcRecordOrderSyncAPIResponseModel
}

TmallMcRecordOrderSyncAPIResponse 订单信息同步 API返回值 tmall.mc.record.order.sync

订单信息同步(零售云接口)

type TmallMcRecordOrderSyncAPIResponseModel added in v1.2.0

type TmallMcRecordOrderSyncAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_mc_record_order_sync_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 同步成功
	Data bool `json:"data,omitempty" xml:"data,omitempty"`
}

TmallMcRecordOrderSyncAPIResponseModel is 订单信息同步 成功返回结果

type TmallMcTaskChargeLaunchAPIRequest added in v1.2.0

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

TmallMcTaskChargeLaunchAPIRequest 云码充电宝投放链路 API请求 tmall.mc.task.charge.launch

云码充电宝投放链路,用于判断用户是否有匹配的投放计划

func NewTmallMcTaskChargeLaunchRequest

func NewTmallMcTaskChargeLaunchRequest() *TmallMcTaskChargeLaunchAPIRequest

NewTmallMcTaskChargeLaunchRequest 初始化TmallMcTaskChargeLaunchAPIRequest对象

func (TmallMcTaskChargeLaunchAPIRequest) GetAlipayOpenId added in v1.2.0

func (r TmallMcTaskChargeLaunchAPIRequest) GetAlipayOpenId() string

GetAlipayOpenId AlipayOpenId Getter

func (TmallMcTaskChargeLaunchAPIRequest) GetApiMethodName added in v1.2.0

func (r TmallMcTaskChargeLaunchAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallMcTaskChargeLaunchAPIRequest) GetApiParams added in v1.2.0

func (r TmallMcTaskChargeLaunchAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TmallMcTaskChargeLaunchAPIRequest) GetChannelId added in v1.2.0

func (r TmallMcTaskChargeLaunchAPIRequest) GetChannelId() string

GetChannelId ChannelId Getter

func (TmallMcTaskChargeLaunchAPIRequest) GetExtra added in v1.2.0

GetExtra Extra Getter

func (TmallMcTaskChargeLaunchAPIRequest) GetOuterCode added in v1.2.0

func (r TmallMcTaskChargeLaunchAPIRequest) GetOuterCode() string

GetOuterCode OuterCode Getter

func (TmallMcTaskChargeLaunchAPIRequest) GetUrlId added in v1.2.0

GetUrlId UrlId Getter

func (*TmallMcTaskChargeLaunchAPIRequest) SetAlipayOpenId added in v1.2.0

func (r *TmallMcTaskChargeLaunchAPIRequest) SetAlipayOpenId(_alipayOpenId string) error

SetAlipayOpenId is AlipayOpenId Setter 支付宝openID

func (*TmallMcTaskChargeLaunchAPIRequest) SetChannelId added in v1.2.0

func (r *TmallMcTaskChargeLaunchAPIRequest) SetChannelId(_channelId string) error

SetChannelId is ChannelId Setter 渠道ID

func (*TmallMcTaskChargeLaunchAPIRequest) SetExtra added in v1.2.0

func (r *TmallMcTaskChargeLaunchAPIRequest) SetExtra(_extra string) error

SetExtra is Extra Setter 服务商附加url参数

func (*TmallMcTaskChargeLaunchAPIRequest) SetOuterCode added in v1.2.0

func (r *TmallMcTaskChargeLaunchAPIRequest) SetOuterCode(_outerCode string) error

SetOuterCode is OuterCode Setter 外部设备编码

func (*TmallMcTaskChargeLaunchAPIRequest) SetUrlId added in v1.2.0

func (r *TmallMcTaskChargeLaunchAPIRequest) SetUrlId(_urlId string) error

SetUrlId is UrlId Setter urlID

type TmallMcTaskChargeLaunchAPIResponse

type TmallMcTaskChargeLaunchAPIResponse struct {
	model.CommonResponse
	TmallMcTaskChargeLaunchAPIResponseModel
}

TmallMcTaskChargeLaunchAPIResponse 云码充电宝投放链路 API返回值 tmall.mc.task.charge.launch

云码充电宝投放链路,用于判断用户是否有匹配的投放计划

type TmallMcTaskChargeLaunchAPIResponseModel added in v1.2.0

type TmallMcTaskChargeLaunchAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_mc_task_charge_launch_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 入会页url
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

TmallMcTaskChargeLaunchAPIResponseModel is 云码充电宝投放链路 成功返回结果

Jump to

Keyboard shortcuts

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