Documentation ¶
Overview ¶
Package eleenterprisecoupon 包含企业订餐优惠券API相关结构体
Index ¶
- func ReleaseAlibabaEleEnterpriseCartcouponGetAPIRequest(v *AlibabaEleEnterpriseCartcouponGetAPIRequest)
- func ReleaseAlibabaEleEnterpriseCartcouponGetAPIResponse(v *AlibabaEleEnterpriseCartcouponGetAPIResponse)
- func ReleaseAlibabaEleEnterpriseCouponGetAPIRequest(v *AlibabaEleEnterpriseCouponGetAPIRequest)
- func ReleaseAlibabaEleEnterpriseCouponGetAPIResponse(v *AlibabaEleEnterpriseCouponGetAPIResponse)
- func ReleaseAlibabaEleEnterpriseCouponSendAPIRequest(v *AlibabaEleEnterpriseCouponSendAPIRequest)
- func ReleaseAlibabaEleEnterpriseCouponSendAPIResponse(v *AlibabaEleEnterpriseCouponSendAPIResponse)
- func ReleaseCartCouponDto(v *CartCouponDto)
- func ReleaseMyCouponsResDto(v *MyCouponsResDto)
- type AlibabaEleEnterpriseCartcouponGetAPIRequest
- func (r AlibabaEleEnterpriseCartcouponGetAPIRequest) GetApiMethodName() string
- func (r AlibabaEleEnterpriseCartcouponGetAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaEleEnterpriseCartcouponGetAPIRequest) GetCartId() string
- func (r AlibabaEleEnterpriseCartcouponGetAPIRequest) GetPhone() string
- func (r AlibabaEleEnterpriseCartcouponGetAPIRequest) GetRawParams() model.Params
- func (r *AlibabaEleEnterpriseCartcouponGetAPIRequest) Reset()
- func (r *AlibabaEleEnterpriseCartcouponGetAPIRequest) SetCartId(_cartId string) error
- func (r *AlibabaEleEnterpriseCartcouponGetAPIRequest) SetPhone(_phone string) error
- type AlibabaEleEnterpriseCartcouponGetAPIResponse
- type AlibabaEleEnterpriseCartcouponGetAPIResponseModel
- type AlibabaEleEnterpriseCouponGetAPIRequest
- func (r AlibabaEleEnterpriseCouponGetAPIRequest) GetApiMethodName() string
- func (r AlibabaEleEnterpriseCouponGetAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaEleEnterpriseCouponGetAPIRequest) GetPhone() string
- func (r AlibabaEleEnterpriseCouponGetAPIRequest) GetRawParams() model.Params
- func (r *AlibabaEleEnterpriseCouponGetAPIRequest) Reset()
- func (r *AlibabaEleEnterpriseCouponGetAPIRequest) SetPhone(_phone string) error
- type AlibabaEleEnterpriseCouponGetAPIResponse
- type AlibabaEleEnterpriseCouponGetAPIResponseModel
- type AlibabaEleEnterpriseCouponSendAPIRequest
- func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetApiMethodName() string
- func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetBatchNo() string
- func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetChannel() string
- func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetDeviceId() string
- func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetIp() string
- func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetLatitude() string
- func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetLongitude() string
- func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetPhone() string
- func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetRawParams() model.Params
- func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetUserAgent() string
- func (r *AlibabaEleEnterpriseCouponSendAPIRequest) Reset()
- func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetBatchNo(_batchNo string) error
- func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetChannel(_channel string) error
- func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetDeviceId(_deviceId string) error
- func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetIp(_ip string) error
- func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetLatitude(_latitude string) error
- func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetLongitude(_longitude string) error
- func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetPhone(_phone string) error
- func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetUserAgent(_userAgent string) error
- type AlibabaEleEnterpriseCouponSendAPIResponse
- type AlibabaEleEnterpriseCouponSendAPIResponseModel
- type CartCouponDto
- type MyCouponsResDto
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReleaseAlibabaEleEnterpriseCartcouponGetAPIRequest ¶ added in v1.3.4
func ReleaseAlibabaEleEnterpriseCartcouponGetAPIRequest(v *AlibabaEleEnterpriseCartcouponGetAPIRequest)
ReleaseAlibabaEleEnterpriseCartcouponGetAPIRequest 将 AlibabaEleEnterpriseCartcouponGetAPIRequest 放入 sync.Pool
func ReleaseAlibabaEleEnterpriseCartcouponGetAPIResponse ¶ added in v1.3.4
func ReleaseAlibabaEleEnterpriseCartcouponGetAPIResponse(v *AlibabaEleEnterpriseCartcouponGetAPIResponse)
ReleaseAlibabaEleEnterpriseCartcouponGetAPIResponse 将 AlibabaEleEnterpriseCartcouponGetAPIResponse 保存到 sync.Pool
func ReleaseAlibabaEleEnterpriseCouponGetAPIRequest ¶ added in v1.3.4
func ReleaseAlibabaEleEnterpriseCouponGetAPIRequest(v *AlibabaEleEnterpriseCouponGetAPIRequest)
ReleaseAlibabaEleEnterpriseCouponGetAPIRequest 将 AlibabaEleEnterpriseCouponGetAPIRequest 放入 sync.Pool
func ReleaseAlibabaEleEnterpriseCouponGetAPIResponse ¶ added in v1.3.4
func ReleaseAlibabaEleEnterpriseCouponGetAPIResponse(v *AlibabaEleEnterpriseCouponGetAPIResponse)
ReleaseAlibabaEleEnterpriseCouponGetAPIResponse 将 AlibabaEleEnterpriseCouponGetAPIResponse 保存到 sync.Pool
func ReleaseAlibabaEleEnterpriseCouponSendAPIRequest ¶ added in v1.3.4
func ReleaseAlibabaEleEnterpriseCouponSendAPIRequest(v *AlibabaEleEnterpriseCouponSendAPIRequest)
ReleaseAlibabaEleEnterpriseCouponSendAPIRequest 将 AlibabaEleEnterpriseCouponSendAPIRequest 放入 sync.Pool
func ReleaseAlibabaEleEnterpriseCouponSendAPIResponse ¶ added in v1.3.4
func ReleaseAlibabaEleEnterpriseCouponSendAPIResponse(v *AlibabaEleEnterpriseCouponSendAPIResponse)
ReleaseAlibabaEleEnterpriseCouponSendAPIResponse 将 AlibabaEleEnterpriseCouponSendAPIResponse 保存到 sync.Pool
func ReleaseCartCouponDto ¶ added in v1.3.4
func ReleaseCartCouponDto(v *CartCouponDto)
ReleaseCartCouponDto 释放CartCouponDto
func ReleaseMyCouponsResDto ¶ added in v1.3.4
func ReleaseMyCouponsResDto(v *MyCouponsResDto)
ReleaseMyCouponsResDto 释放MyCouponsResDto
Types ¶
type AlibabaEleEnterpriseCartcouponGetAPIRequest ¶ added in v1.2.0
type AlibabaEleEnterpriseCartcouponGetAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaEleEnterpriseCartcouponGetAPIRequest 获取下单可用的优惠券 API请求 alibaba.ele.enterprise.cartcoupon.get
获取下单可用的优惠券
func GetAlibabaEleEnterpriseCartcouponGetAPIRequest ¶ added in v1.3.4
func GetAlibabaEleEnterpriseCartcouponGetAPIRequest() *AlibabaEleEnterpriseCartcouponGetAPIRequest
GetAlibabaEleEnterpriseCartcouponGetRequest 从 sync.Pool 获取 AlibabaEleEnterpriseCartcouponGetAPIRequest
func NewAlibabaEleEnterpriseCartcouponGetRequest ¶
func NewAlibabaEleEnterpriseCartcouponGetRequest() *AlibabaEleEnterpriseCartcouponGetAPIRequest
NewAlibabaEleEnterpriseCartcouponGetRequest 初始化AlibabaEleEnterpriseCartcouponGetAPIRequest对象
func (AlibabaEleEnterpriseCartcouponGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaEleEnterpriseCartcouponGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaEleEnterpriseCartcouponGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaEleEnterpriseCartcouponGetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaEleEnterpriseCartcouponGetAPIRequest) GetCartId ¶ added in v1.2.0
func (r AlibabaEleEnterpriseCartcouponGetAPIRequest) GetCartId() string
GetCartId CartId Getter
func (AlibabaEleEnterpriseCartcouponGetAPIRequest) GetPhone ¶ added in v1.2.0
func (r AlibabaEleEnterpriseCartcouponGetAPIRequest) GetPhone() string
GetPhone Phone Getter
func (AlibabaEleEnterpriseCartcouponGetAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaEleEnterpriseCartcouponGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlibabaEleEnterpriseCartcouponGetAPIRequest) Reset ¶ added in v1.3.4
func (r *AlibabaEleEnterpriseCartcouponGetAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*AlibabaEleEnterpriseCartcouponGetAPIRequest) SetCartId ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseCartcouponGetAPIRequest) SetCartId(_cartId string) error
SetCartId is CartId Setter 购物车id
func (*AlibabaEleEnterpriseCartcouponGetAPIRequest) SetPhone ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseCartcouponGetAPIRequest) SetPhone(_phone string) error
SetPhone is Phone Setter 手机号
type AlibabaEleEnterpriseCartcouponGetAPIResponse ¶
type AlibabaEleEnterpriseCartcouponGetAPIResponse struct { model.CommonResponse AlibabaEleEnterpriseCartcouponGetAPIResponseModel }
AlibabaEleEnterpriseCartcouponGetAPIResponse 获取下单可用的优惠券 API返回值 alibaba.ele.enterprise.cartcoupon.get
获取下单可用的优惠券
func GetAlibabaEleEnterpriseCartcouponGetAPIResponse ¶ added in v1.3.4
func GetAlibabaEleEnterpriseCartcouponGetAPIResponse() *AlibabaEleEnterpriseCartcouponGetAPIResponse
GetAlibabaEleEnterpriseCartcouponGetAPIResponse 从 sync.Pool 获取 AlibabaEleEnterpriseCartcouponGetAPIResponse
func (*AlibabaEleEnterpriseCartcouponGetAPIResponse) Reset ¶ added in v1.3.4
func (m *AlibabaEleEnterpriseCartcouponGetAPIResponse) Reset()
Reset 清空结构体
type AlibabaEleEnterpriseCartcouponGetAPIResponseModel ¶ added in v1.2.0
type AlibabaEleEnterpriseCartcouponGetAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_ele_enterprise_cartcoupon_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 响应code EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` // 响应信息 EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` // 请求id EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` // 返回值信息 EnterpriseDatas *MyCouponsResDto `json:"enterprise_datas,omitempty" xml:"enterprise_datas,omitempty"` }
AlibabaEleEnterpriseCartcouponGetAPIResponseModel is 获取下单可用的优惠券 成功返回结果
func (*AlibabaEleEnterpriseCartcouponGetAPIResponseModel) Reset ¶ added in v1.3.4
func (m *AlibabaEleEnterpriseCartcouponGetAPIResponseModel) Reset()
Reset 清空结构体
type AlibabaEleEnterpriseCouponGetAPIRequest ¶ added in v1.2.0
type AlibabaEleEnterpriseCouponGetAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaEleEnterpriseCouponGetAPIRequest 获取用户优惠券 API请求 alibaba.ele.enterprise.coupon.get
获取用户优惠券
func GetAlibabaEleEnterpriseCouponGetAPIRequest ¶ added in v1.3.4
func GetAlibabaEleEnterpriseCouponGetAPIRequest() *AlibabaEleEnterpriseCouponGetAPIRequest
GetAlibabaEleEnterpriseCouponGetRequest 从 sync.Pool 获取 AlibabaEleEnterpriseCouponGetAPIRequest
func NewAlibabaEleEnterpriseCouponGetRequest ¶
func NewAlibabaEleEnterpriseCouponGetRequest() *AlibabaEleEnterpriseCouponGetAPIRequest
NewAlibabaEleEnterpriseCouponGetRequest 初始化AlibabaEleEnterpriseCouponGetAPIRequest对象
func (AlibabaEleEnterpriseCouponGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaEleEnterpriseCouponGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaEleEnterpriseCouponGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaEleEnterpriseCouponGetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaEleEnterpriseCouponGetAPIRequest) GetPhone ¶ added in v1.2.0
func (r AlibabaEleEnterpriseCouponGetAPIRequest) GetPhone() string
GetPhone Phone Getter
func (AlibabaEleEnterpriseCouponGetAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaEleEnterpriseCouponGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlibabaEleEnterpriseCouponGetAPIRequest) Reset ¶ added in v1.3.4
func (r *AlibabaEleEnterpriseCouponGetAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*AlibabaEleEnterpriseCouponGetAPIRequest) SetPhone ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseCouponGetAPIRequest) SetPhone(_phone string) error
SetPhone is Phone Setter 手机号
type AlibabaEleEnterpriseCouponGetAPIResponse ¶
type AlibabaEleEnterpriseCouponGetAPIResponse struct { model.CommonResponse AlibabaEleEnterpriseCouponGetAPIResponseModel }
AlibabaEleEnterpriseCouponGetAPIResponse 获取用户优惠券 API返回值 alibaba.ele.enterprise.coupon.get
获取用户优惠券
func GetAlibabaEleEnterpriseCouponGetAPIResponse ¶ added in v1.3.4
func GetAlibabaEleEnterpriseCouponGetAPIResponse() *AlibabaEleEnterpriseCouponGetAPIResponse
GetAlibabaEleEnterpriseCouponGetAPIResponse 从 sync.Pool 获取 AlibabaEleEnterpriseCouponGetAPIResponse
func (*AlibabaEleEnterpriseCouponGetAPIResponse) Reset ¶ added in v1.3.4
func (m *AlibabaEleEnterpriseCouponGetAPIResponse) Reset()
Reset 清空结构体
type AlibabaEleEnterpriseCouponGetAPIResponseModel ¶ added in v1.2.0
type AlibabaEleEnterpriseCouponGetAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_ele_enterprise_coupon_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回值信息 EnterpriseDatas []MyCouponsResDto `json:"enterprise_datas,omitempty" xml:"enterprise_datas>my_coupons_res_dto,omitempty"` // 响应code EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` // 响应信息 EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` // 请求id EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` }
AlibabaEleEnterpriseCouponGetAPIResponseModel is 获取用户优惠券 成功返回结果
func (*AlibabaEleEnterpriseCouponGetAPIResponseModel) Reset ¶ added in v1.3.4
func (m *AlibabaEleEnterpriseCouponGetAPIResponseModel) Reset()
Reset 清空结构体
type AlibabaEleEnterpriseCouponSendAPIRequest ¶ added in v1.2.0
type AlibabaEleEnterpriseCouponSendAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaEleEnterpriseCouponSendAPIRequest 发放优惠券 API请求 alibaba.ele.enterprise.coupon.send
发放优惠券
func GetAlibabaEleEnterpriseCouponSendAPIRequest ¶ added in v1.3.4
func GetAlibabaEleEnterpriseCouponSendAPIRequest() *AlibabaEleEnterpriseCouponSendAPIRequest
GetAlibabaEleEnterpriseCouponSendRequest 从 sync.Pool 获取 AlibabaEleEnterpriseCouponSendAPIRequest
func NewAlibabaEleEnterpriseCouponSendRequest ¶
func NewAlibabaEleEnterpriseCouponSendRequest() *AlibabaEleEnterpriseCouponSendAPIRequest
NewAlibabaEleEnterpriseCouponSendRequest 初始化AlibabaEleEnterpriseCouponSendAPIRequest对象
func (AlibabaEleEnterpriseCouponSendAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaEleEnterpriseCouponSendAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaEleEnterpriseCouponSendAPIRequest) GetBatchNo ¶ added in v1.2.0
func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetBatchNo() string
GetBatchNo BatchNo Getter
func (AlibabaEleEnterpriseCouponSendAPIRequest) GetChannel ¶ added in v1.2.0
func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetChannel() string
GetChannel Channel Getter
func (AlibabaEleEnterpriseCouponSendAPIRequest) GetDeviceId ¶ added in v1.2.0
func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetDeviceId() string
GetDeviceId DeviceId Getter
func (AlibabaEleEnterpriseCouponSendAPIRequest) GetIp ¶ added in v1.2.0
func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetIp() string
GetIp Ip Getter
func (AlibabaEleEnterpriseCouponSendAPIRequest) GetLatitude ¶ added in v1.2.0
func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetLatitude() string
GetLatitude Latitude Getter
func (AlibabaEleEnterpriseCouponSendAPIRequest) GetLongitude ¶ added in v1.2.0
func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetLongitude() string
GetLongitude Longitude Getter
func (AlibabaEleEnterpriseCouponSendAPIRequest) GetPhone ¶ added in v1.2.0
func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetPhone() string
GetPhone Phone Getter
func (AlibabaEleEnterpriseCouponSendAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (AlibabaEleEnterpriseCouponSendAPIRequest) GetUserAgent ¶ added in v1.2.0
func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetUserAgent() string
GetUserAgent UserAgent Getter
func (*AlibabaEleEnterpriseCouponSendAPIRequest) Reset ¶ added in v1.3.4
func (r *AlibabaEleEnterpriseCouponSendAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*AlibabaEleEnterpriseCouponSendAPIRequest) SetBatchNo ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetBatchNo(_batchNo string) error
SetBatchNo is BatchNo Setter 批次,同一个批次号只会发券一次,后续用同一个批次号的请求会返回上次发的券(幂等)
func (*AlibabaEleEnterpriseCouponSendAPIRequest) SetChannel ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetChannel(_channel string) error
SetChannel is Channel Setter 固定值,申请获取
func (*AlibabaEleEnterpriseCouponSendAPIRequest) SetDeviceId ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetDeviceId(_deviceId string) error
SetDeviceId is DeviceId Setter 设备ID
func (*AlibabaEleEnterpriseCouponSendAPIRequest) SetIp ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetIp(_ip string) error
SetIp is Ip Setter 客户端IP地址
func (*AlibabaEleEnterpriseCouponSendAPIRequest) SetLatitude ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetLatitude(_latitude string) error
SetLatitude is Latitude Setter 纬度
func (*AlibabaEleEnterpriseCouponSendAPIRequest) SetLongitude ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetLongitude(_longitude string) error
SetLongitude is Longitude Setter 经度
func (*AlibabaEleEnterpriseCouponSendAPIRequest) SetPhone ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetPhone(_phone string) error
SetPhone is Phone Setter 手机号
func (*AlibabaEleEnterpriseCouponSendAPIRequest) SetUserAgent ¶ added in v1.2.0
func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetUserAgent(_userAgent string) error
SetUserAgent is UserAgent Setter 客户端User-Agent信息
type AlibabaEleEnterpriseCouponSendAPIResponse ¶
type AlibabaEleEnterpriseCouponSendAPIResponse struct { model.CommonResponse AlibabaEleEnterpriseCouponSendAPIResponseModel }
AlibabaEleEnterpriseCouponSendAPIResponse 发放优惠券 API返回值 alibaba.ele.enterprise.coupon.send
发放优惠券
func GetAlibabaEleEnterpriseCouponSendAPIResponse ¶ added in v1.3.4
func GetAlibabaEleEnterpriseCouponSendAPIResponse() *AlibabaEleEnterpriseCouponSendAPIResponse
GetAlibabaEleEnterpriseCouponSendAPIResponse 从 sync.Pool 获取 AlibabaEleEnterpriseCouponSendAPIResponse
func (*AlibabaEleEnterpriseCouponSendAPIResponse) Reset ¶ added in v1.3.4
func (m *AlibabaEleEnterpriseCouponSendAPIResponse) Reset()
Reset 清空结构体
type AlibabaEleEnterpriseCouponSendAPIResponseModel ¶ added in v1.2.0
type AlibabaEleEnterpriseCouponSendAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_ele_enterprise_coupon_send_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回值信息 EnterpriseDatas []MyCouponsResDto `json:"enterprise_datas,omitempty" xml:"enterprise_datas>my_coupons_res_dto,omitempty"` // 响应code EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` // 响应信息 EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` // 请求id EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` }
AlibabaEleEnterpriseCouponSendAPIResponseModel is 发放优惠券 成功返回结果
func (*AlibabaEleEnterpriseCouponSendAPIResponseModel) Reset ¶ added in v1.3.4
func (m *AlibabaEleEnterpriseCouponSendAPIResponseModel) Reset()
Reset 清空结构体
type CartCouponDto ¶
type CartCouponDto struct { // 券描述信息 Descriptions []string `json:"descriptions,omitempty" xml:"descriptions>string,omitempty"` UnavailableReasons []string `json:"unavailable_reasons,omitempty" xml:"unavailable_reasons>string,omitempty"` // 红包的SN或者券的ID Sn string `json:"sn,omitempty" xml:"sn,omitempty"` // 券名称 Name string `json:"name,omitempty" xml:"name,omitempty"` // 优惠类型为立减时表示立减金额, 优惠类型为特价券时,表示特价金额 Amount string `json:"amount,omitempty" xml:"amount,omitempty"` // 使用门槛 Threshold string `json:"threshold,omitempty" xml:"threshold,omitempty"` // 券剩余张数 StockCountLeft string `json:"stock_count_left,omitempty" xml:"stock_count_left,omitempty"` // 类型:红包=1,券=2 PromotionType int64 `json:"promotion_type,omitempty" xml:"promotion_type,omitempty"` // 券的张数,默认是1,ET时表示使用的张数 Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"` // 券的展示状态 1:券可用可选中 2:券可用但是不可选中 3:券不可用,不可选中 Status int64 `json:"status,omitempty" xml:"status,omitempty"` // 券可使用张数 StockCountAvailable int64 `json:"stock_count_available,omitempty" xml:"stock_count_available,omitempty"` }
CartCouponDto 结构体
func GetCartCouponDto ¶ added in v1.3.4
func GetCartCouponDto() *CartCouponDto
GetCartCouponDto() 从对象池中获取CartCouponDto
type MyCouponsResDto ¶
type MyCouponsResDto struct { // 券的明细数据 Groups []CartCouponDto `json:"groups,omitempty" xml:"groups>cart_coupon_dto,omitempty"` // 推荐券 Recommends []CartCouponDto `json:"recommends,omitempty" xml:"recommends>cart_coupon_dto,omitempty"` // 限制条件 Descriptions []string `json:"descriptions,omitempty" xml:"descriptions>string,omitempty"` // 已选择券的总价,包含溢出与裁剪之后的总价值 SelectedTotalPrice string `json:"selected_total_price,omitempty" xml:"selected_total_price,omitempty"` // 选出最优券的总价 RecommendsTotalPrice string `json:"recommends_total_price,omitempty" xml:"recommends_total_price,omitempty"` // 已选择券不可以组合选中时的提示性文案 ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` // 优惠券名称 Name string `json:"name,omitempty" xml:"name,omitempty"` // 优惠券金额 Amount string `json:"amount,omitempty" xml:"amount,omitempty"` // 优惠券门槛金额 Threshold string `json:"threshold,omitempty" xml:"threshold,omitempty"` // 券ID Sn string `json:"sn,omitempty" xml:"sn,omitempty"` // 券名称 Title string `json:"title,omitempty" xml:"title,omitempty"` // 券生效日期时间 BeginDateTime string `json:"begin_date_time,omitempty" xml:"begin_date_time,omitempty"` // 券失效日期时间 EndDateTime string `json:"end_date_time,omitempty" xml:"end_date_time,omitempty"` // 手机号 Phone string `json:"phone,omitempty" xml:"phone,omitempty"` // 券使用条件 Condition string `json:"condition,omitempty" xml:"condition,omitempty"` // 已选择券的总数量 SelectedQuantity int64 `json:"selected_quantity,omitempty" xml:"selected_quantity,omitempty"` // 选出最优券的数量 RecommendsQuantity int64 `json:"recommends_quantity,omitempty" xml:"recommends_quantity,omitempty"` // id Id int64 `json:"id,omitempty" xml:"id,omitempty"` // 是否可选择多张券 GroupMulti bool `json:"group_multi,omitempty" xml:"group_multi,omitempty"` // 已选择的券是不是可以有效组合选中 SelectedLegalStatus bool `json:"selected_legal_status,omitempty" xml:"selected_legal_status,omitempty"` }
MyCouponsResDto 结构体
func GetMyCouponsResDto ¶ added in v1.3.4
func GetMyCouponsResDto() *MyCouponsResDto
GetMyCouponsResDto() 从对象池中获取MyCouponsResDto
Source Files ¶
- AlibabaEleEnterpriseCartcouponGetAPIRequest.go
- AlibabaEleEnterpriseCartcouponGetAPIResponse.go
- AlibabaEleEnterpriseCouponGetAPIRequest.go
- AlibabaEleEnterpriseCouponGetAPIResponse.go
- AlibabaEleEnterpriseCouponSendAPIRequest.go
- AlibabaEleEnterpriseCouponSendAPIResponse.go
- CartCouponDto.go
- MyCouponsResDto.go
- doc.go