Documentation ¶
Overview ¶
Package charity 包含公益三小时公共相关结构体
Index ¶
- type AlibabaCharityCharitytimeQueryAPIRequest
- func (r AlibabaCharityCharitytimeQueryAPIRequest) GetActivityId() int64
- func (r AlibabaCharityCharitytimeQueryAPIRequest) GetApiMethodName() string
- func (r AlibabaCharityCharitytimeQueryAPIRequest) GetApiParams() url.Values
- func (r AlibabaCharityCharitytimeQueryAPIRequest) GetCharityTypeList() []string
- func (r AlibabaCharityCharitytimeQueryAPIRequest) GetEndDate() int64
- func (r AlibabaCharityCharitytimeQueryAPIRequest) GetExtParam() string
- func (r AlibabaCharityCharitytimeQueryAPIRequest) GetStartDate() int64
- func (r AlibabaCharityCharitytimeQueryAPIRequest) GetTbUid() int64
- func (r *AlibabaCharityCharitytimeQueryAPIRequest) SetActivityId(_activityId int64) error
- func (r *AlibabaCharityCharitytimeQueryAPIRequest) SetCharityTypeList(_charityTypeList []string) error
- func (r *AlibabaCharityCharitytimeQueryAPIRequest) SetEndDate(_endDate int64) error
- func (r *AlibabaCharityCharitytimeQueryAPIRequest) SetExtParam(_extParam string) error
- func (r *AlibabaCharityCharitytimeQueryAPIRequest) SetStartDate(_startDate int64) error
- func (r *AlibabaCharityCharitytimeQueryAPIRequest) SetTbUid(_tbUid int64) error
- type AlibabaCharityCharitytimeQueryAPIResponse
- type AlibabaCharityCharitytimeQueryAPIResponseModel
- type AlibabaCharityUseractionSyncAPIRequest
- func (r AlibabaCharityUseractionSyncAPIRequest) GetApiMethodName() string
- func (r AlibabaCharityUseractionSyncAPIRequest) GetApiParams() url.Values
- func (r AlibabaCharityUseractionSyncAPIRequest) GetChannelUserActionDto() *ChannelUserActionDto
- func (r *AlibabaCharityUseractionSyncAPIRequest) SetChannelUserActionDto(_channelUserActionDto *ChannelUserActionDto) error
- type AlibabaCharityUseractionSyncAPIResponse
- type AlibabaCharityUseractionSyncAPIResponseModel
- type ChannelUserActionDto
- type ThreehoursResult
- type UserActionSyncResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlibabaCharityCharitytimeQueryAPIRequest ¶ added in v1.2.0
type AlibabaCharityCharitytimeQueryAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaCharityCharitytimeQueryAPIRequest 查询公益3小时公益时汇总 API请求 alibaba.charity.charitytime.query
查询公益3小时公益时汇总
func NewAlibabaCharityCharitytimeQueryRequest ¶
func NewAlibabaCharityCharitytimeQueryRequest() *AlibabaCharityCharitytimeQueryAPIRequest
NewAlibabaCharityCharitytimeQueryRequest 初始化AlibabaCharityCharitytimeQueryAPIRequest对象
func (AlibabaCharityCharitytimeQueryAPIRequest) GetActivityId ¶ added in v1.2.0
func (r AlibabaCharityCharitytimeQueryAPIRequest) GetActivityId() int64
GetActivityId ActivityId Getter
func (AlibabaCharityCharitytimeQueryAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaCharityCharitytimeQueryAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaCharityCharitytimeQueryAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaCharityCharitytimeQueryAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaCharityCharitytimeQueryAPIRequest) GetCharityTypeList ¶ added in v1.2.0
func (r AlibabaCharityCharitytimeQueryAPIRequest) GetCharityTypeList() []string
GetCharityTypeList CharityTypeList Getter
func (AlibabaCharityCharitytimeQueryAPIRequest) GetEndDate ¶ added in v1.2.0
func (r AlibabaCharityCharitytimeQueryAPIRequest) GetEndDate() int64
GetEndDate EndDate Getter
func (AlibabaCharityCharitytimeQueryAPIRequest) GetExtParam ¶ added in v1.2.0
func (r AlibabaCharityCharitytimeQueryAPIRequest) GetExtParam() string
GetExtParam ExtParam Getter
func (AlibabaCharityCharitytimeQueryAPIRequest) GetStartDate ¶ added in v1.2.0
func (r AlibabaCharityCharitytimeQueryAPIRequest) GetStartDate() int64
GetStartDate StartDate Getter
func (AlibabaCharityCharitytimeQueryAPIRequest) GetTbUid ¶ added in v1.2.0
func (r AlibabaCharityCharitytimeQueryAPIRequest) GetTbUid() int64
GetTbUid TbUid Getter
func (*AlibabaCharityCharitytimeQueryAPIRequest) SetActivityId ¶ added in v1.2.0
func (r *AlibabaCharityCharitytimeQueryAPIRequest) SetActivityId(_activityId int64) error
SetActivityId is ActivityId Setter 活动ID
func (*AlibabaCharityCharitytimeQueryAPIRequest) SetCharityTypeList ¶ added in v1.2.0
func (r *AlibabaCharityCharitytimeQueryAPIRequest) SetCharityTypeList(_charityTypeList []string) error
SetCharityTypeList is CharityTypeList Setter 公益类型
func (*AlibabaCharityCharitytimeQueryAPIRequest) SetEndDate ¶ added in v1.2.0
func (r *AlibabaCharityCharitytimeQueryAPIRequest) SetEndDate(_endDate int64) error
SetEndDate is EndDate Setter 结束时间戳-毫秒时间
func (*AlibabaCharityCharitytimeQueryAPIRequest) SetExtParam ¶ added in v1.2.0
func (r *AlibabaCharityCharitytimeQueryAPIRequest) SetExtParam(_extParam string) error
SetExtParam is ExtParam Setter 扩展参数
func (*AlibabaCharityCharitytimeQueryAPIRequest) SetStartDate ¶ added in v1.2.0
func (r *AlibabaCharityCharitytimeQueryAPIRequest) SetStartDate(_startDate int64) error
SetStartDate is StartDate Setter 开始时间戳-毫秒时间
func (*AlibabaCharityCharitytimeQueryAPIRequest) SetTbUid ¶ added in v1.2.0
func (r *AlibabaCharityCharitytimeQueryAPIRequest) SetTbUid(_tbUid int64) error
SetTbUid is TbUid Setter 淘宝Uid
type AlibabaCharityCharitytimeQueryAPIResponse ¶
type AlibabaCharityCharitytimeQueryAPIResponse struct { model.CommonResponse AlibabaCharityCharitytimeQueryAPIResponseModel }
AlibabaCharityCharitytimeQueryAPIResponse 查询公益3小时公益时汇总 API返回值 alibaba.charity.charitytime.query
查询公益3小时公益时汇总
type AlibabaCharityCharitytimeQueryAPIResponseModel ¶ added in v1.2.0
type AlibabaCharityCharitytimeQueryAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_charity_charitytime_query_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 消息 Apimsg string `json:"apimsg,omitempty" xml:"apimsg,omitempty"` // 错误码 Apicode int64 `json:"apicode,omitempty" xml:"apicode,omitempty"` // 数据 Data int64 `json:"data,omitempty" xml:"data,omitempty"` // 失败 Fail bool `json:"fail,omitempty" xml:"fail,omitempty"` // 成功 Apisuccess bool `json:"apisuccess,omitempty" xml:"apisuccess,omitempty"` }
AlibabaCharityCharitytimeQueryAPIResponseModel is 查询公益3小时公益时汇总 成功返回结果
type AlibabaCharityUseractionSyncAPIRequest ¶ added in v1.2.0
type AlibabaCharityUseractionSyncAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaCharityUseractionSyncAPIRequest 用户公益行为同步 API请求 alibaba.charity.useraction.sync
外部公益活动,用户公益行为同步
func NewAlibabaCharityUseractionSyncRequest ¶
func NewAlibabaCharityUseractionSyncRequest() *AlibabaCharityUseractionSyncAPIRequest
NewAlibabaCharityUseractionSyncRequest 初始化AlibabaCharityUseractionSyncAPIRequest对象
func (AlibabaCharityUseractionSyncAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaCharityUseractionSyncAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaCharityUseractionSyncAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaCharityUseractionSyncAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaCharityUseractionSyncAPIRequest) GetChannelUserActionDto ¶ added in v1.2.0
func (r AlibabaCharityUseractionSyncAPIRequest) GetChannelUserActionDto() *ChannelUserActionDto
GetChannelUserActionDto ChannelUserActionDto Getter
func (*AlibabaCharityUseractionSyncAPIRequest) SetChannelUserActionDto ¶ added in v1.2.0
func (r *AlibabaCharityUseractionSyncAPIRequest) SetChannelUserActionDto(_channelUserActionDto *ChannelUserActionDto) error
SetChannelUserActionDto is ChannelUserActionDto Setter 用户公益行为
type AlibabaCharityUseractionSyncAPIResponse ¶
type AlibabaCharityUseractionSyncAPIResponse struct { model.CommonResponse AlibabaCharityUseractionSyncAPIResponseModel }
AlibabaCharityUseractionSyncAPIResponse 用户公益行为同步 API返回值 alibaba.charity.useraction.sync
外部公益活动,用户公益行为同步
type AlibabaCharityUseractionSyncAPIResponseModel ¶ added in v1.2.0
type AlibabaCharityUseractionSyncAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_charity_useraction_sync_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 结果 Result *ThreehoursResult `json:"result,omitempty" xml:"result,omitempty"` }
AlibabaCharityUseractionSyncAPIResponseModel is 用户公益行为同步 成功返回结果
type ChannelUserActionDto ¶
type ChannelUserActionDto struct { // 唯一的动作ID,渠道范围内唯一,幂等控制 EventId string `json:"event_id,omitempty" xml:"event_id,omitempty"` // 公益类型子代码 CharityTypeSubCode string `json:"charity_type_sub_code,omitempty" xml:"charity_type_sub_code,omitempty"` // 扩展属性 FeaturesMap string `json:"features_map,omitempty" xml:"features_map,omitempty"` // 公益感言 Feeling string `json:"feeling,omitempty" xml:"feeling,omitempty"` // 做公益当时的时间 CharityTimestamp string `json:"charity_timestamp,omitempty" xml:"charity_timestamp,omitempty"` // 原生公益行为内容,JSON OriContent string `json:"ori_content,omitempty" xml:"ori_content,omitempty"` // 活动ID ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"` // 淘宝ID TbUserId int64 `json:"tb_user_id,omitempty" xml:"tb_user_id,omitempty"` // 做公益当时的时间戳 TimestampLong int64 `json:"timestamp_long,omitempty" xml:"timestamp_long,omitempty"` // 是否强制报名活动,默认false ForeRegActivity bool `json:"fore_reg_activity,omitempty" xml:"fore_reg_activity,omitempty"` }
ChannelUserActionDto 结构体
type ThreehoursResult ¶
type ThreehoursResult struct { // 消息 Msg string `json:"msg,omitempty" xml:"msg,omitempty"` // 错误码 Code int64 `json:"code,omitempty" xml:"code,omitempty"` // 结果 Data *UserActionSyncResult `json:"data,omitempty" xml:"data,omitempty"` // 是否成功 Success bool `json:"success,omitempty" xml:"success,omitempty"` }
ThreehoursResult 结构体
type UserActionSyncResult ¶
type UserActionSyncResult struct { // 唯一的事件ID EventId string `json:"event_id,omitempty" xml:"event_id,omitempty"` // 本次同步获得的公益时 CharityHours string `json:"charity_hours,omitempty" xml:"charity_hours,omitempty"` }
UserActionSyncResult 结构体