Documentation ¶
Index ¶
- Constants
- func WriteCollectCoupon(req *WriteCollectCouponRequest) (bool, error)
- func WritePersonInfo(req WritePersonInfoRequest) (bool, error)
- type CreateGiftActivityData
- type CreateGiftActivityRequest
- type CreateGiftActivityResponse
- type CreateGiftActivityResult
- type FindCollectInfoData
- type FindCollectInfoDetails
- type FindCollectInfoRequest
- type FindCollectInfoResponse
- type FindCollectInfoResult
- type GetPersonLabelListData
- type GetPersonLabelListLabel
- type GetPersonLabelListLabelVal
- type GetPersonLabelListRequest
- type GetPersonLabelListResponse
- type GetPersonLabelListResult
- type WriteCollectCouponData
- type WriteCollectCouponRequest
- type WriteCollectCouponResponse
- type WriteCollectCouponResult
- type WritePersonInfoRequest
- type WritePersonInfoResponse
- type WritePersonInfoResponse1
- type WritePersonInfoResult
Constants ¶
View Source
const ( ActionTypeParticipate = 1 // 参与 ActionTypeInvitee = 3 // 助力 ActionTypeBrowseShops = 4 // 浏览店铺 ActionTypeBrowseGoods = 5 // 浏览商品 ActionTypeFollowShop = 6 // 关注店铺 ActionTypeFollowGoods = 7 // 关注商品 ActionTypeOpenCardMember = 8 // 开卡会员 ActionTypeAddCart = 9 // 加购 )
行为类型
Variables ¶
This section is empty.
Functions ¶
func WriteCollectCoupon ¶
func WriteCollectCoupon(req *WriteCollectCouponRequest) (bool, error)
func WritePersonInfo ¶
func WritePersonInfo(req WritePersonInfoRequest) (bool, error)
Types ¶
type CreateGiftActivityData ¶
type CreateGiftActivityData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` ErrorDesc string `json:"error_description,omitempty" codec:"error_description,omitempty"` Result *CreateGiftActivityResult `json:"giftActivityResults,omitempty" codec:"giftActivityResults,omitempty"` }
type CreateGiftActivityRequest ¶
type CreateGiftActivityRequest struct { api.BaseRequest AppName string `json:"appName,omitempty" codec:"appName,omitempty"` // 调用方应用名称,新接口接入必须联系产品,出现问题概不负责,且有权利追求责任及接口降级 AppId uint64 `json:"appId,omitempty" codec:"appId,omitempty"` Channel uint8 `json:"channel,omitempty" codec:"channel,omitempty"` IsPrize uint8 `json:"isPrize,omitempty" codec:"isPrize,omitempty"` PrizeType uint8 `json:"prizeType,omitempty" codec:"prizeType,omitempty"` Source uint8 `json:"source,omitempty" codec:"source,omitempty"` Type uint8 `json:"type,omitempty" codec:"type,omitempty"` StartTime string `json:"startTime,omitempty" codec:"startTime,omitempty"` EndTime string `json:"endTime,omitempty" codec:"endTime,omitempty"` Creator string `json:"creator,omitempty" codec:"creator,omitempty"` Name string `json:"name,omitempty" codec:"name,omitempty"` SourceName string `json:"sourceName,omitempty" codec:"sourceName,omitempty"` CouponId uint64 `json:"couponId,omitempty" codec:"couponId,omitempty"` Discount string `json:"discount,omitempty" codec:"discount,omitempty"` Quota string `json:"quota,omitempty" codec:"quota,omitempty"` SendCount string `json:"send_count"` PrizeEndTime string `json:"prize_end_time"` ValidateDay string `json:"validate_day"` }
type CreateGiftActivityResponse ¶
type CreateGiftActivityResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *CreateGiftActivityData `` /* 176-byte string literal not displayed */ }
type CreateGiftActivityResult ¶
type CreateGiftActivityResult struct { Data uint64 `json:"data,omitempty" codec:"data,omitempty"` Code uint32 `json:"code" codec:"code"` Msg string `json:"msg" codec:"msg"` }
func CreateGiftActivity ¶
func CreateGiftActivity(req *CreateGiftActivityRequest) (*CreateGiftActivityResult, error)
type FindCollectInfoData ¶
type FindCollectInfoData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` ErrorDesc string `json:"error_description,omitempty" codec:"error_description,omitempty"` Result *FindCollectInfoResult `json:"giftActivityResults,omitempty" codec:"giftActivityResults,omitempty"` }
type FindCollectInfoDetails ¶
type FindCollectInfoDetails struct { ValidateDay uint16 `json:"validateDay,omitempty" codec:"validateDay,omitempty"` PrizeStartTime uint64 `json:"prizeStartTime,omitempty" codec:"prizeStartTime,omitempty"` VenderId uint64 `json:"venderId,omitempty" codec:"venderId,omitempty"` PrizeType uint8 `json:"prizeType,omitempty" codec:"prizeType,omitempty"` CouponId uint64 `json:"couponId,omitempty" codec:"couponId,omitempty"` Discount uint16 `json:"discount,omitempty" codec:"discount,omitempty"` Id uint64 `json:"id,omitempty" codec:"id,omitempty"` ActivityId uint64 `json:"activityId,omitempty" codec:"activityId,omitempty"` Quota uint32 `json:"quota,omitempty" codec:"quota,omitempty"` SendCount uint32 `json:"sendCount,omitempty" codec:"sendCount,omitempty"` DrawCount uint32 `json:"drawCount,omitempty" codec:"drawCount,omitempty"` BatchKey string `json:"batchKey,omitempty" codec:"batchKey,omitempty"` CollectTimes uint16 `json:"collectTimes,omitempty" codec:"collectTimes,omitempty"` PrizeEndTime uint64 `json:"prizeEndTime,omitempty" codec:"prizeEndTime,omitempty"` PrizeId uint64 `json:"prizeId,omitempty" codec:"prizeId,omitempty"` }
func FindCollectInfo ¶
func FindCollectInfo(req *FindCollectInfoRequest) ([]*FindCollectInfoDetails, error)
type FindCollectInfoRequest ¶
type FindCollectInfoRequest struct { api.BaseRequest AppName string `json:"appName,omitempty" codec:"appName,omitempty"` // 调用方应用名称,新接口接入必须联系产品,出现问题概不负责,且有权利追求责任及接口降级 AppId uint64 `json:"appId,omitempty" codec:"appId,omitempty"` Channel uint8 `json:"channel,omitempty" codec:"channel,omitempty"` Pin string `json:"pin,omitempty" codec:"pin,omitempty"` ActivityId uint64 `json:"activityId,omitempty" codec:"activityId,omitempty"` Ip string `json:"ip,omitempty" codec:"ip,omitempty"` RuleId uint64 `json:"ruleId,omitempty" codec:"ruleId,omitempty"` RfId string `json:"rfId,omitempty" codec:"rfId,omitempty"` Source uint8 `json:"source,omitempty" codec:"source,omitempty"` Type uint8 `json:"type,omitempty" codec:"type,omitempty"` }
type FindCollectInfoResponse ¶
type FindCollectInfoResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *FindCollectInfoData `` /* 168-byte string literal not displayed */ }
type FindCollectInfoResult ¶
type FindCollectInfoResult struct { Data []*FindCollectInfoDetails `json:"data,omitempty" codec:"data,omitempty"` Code uint32 `json:"code" codec:"code"` Msg string `json:"msg" codec:"msg"` }
type GetPersonLabelListData ¶
type GetPersonLabelListData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` ErrorDesc string `json:"error_description,omitempty" codec:"error_description,omitempty"` Result *GetPersonLabelListResult `json:"Results,omitempty" codec:"Results,omitempty"` }
type GetPersonLabelListLabel ¶
type GetPersonLabelListLabel struct { LabelDesc string `json:"labelDesc" codec:"labelDesc"` LabelName string `json:"labelName" codec:"labelName"` LabelId string `json:"labelId" codec:"labelId"` LabelVal []GetPersonLabelListLabelVal `json:"labelVal" codec:"labelVal"` }
func GetPersonLabelList ¶
func GetPersonLabelList(req *GetPersonLabelListRequest) ([]GetPersonLabelListLabel, error)
type GetPersonLabelListRequest ¶
type GetPersonLabelListRequest struct { api.BaseRequest AppName string `json:"appName,omitempty" codec:"appName,omitempty"` // 调用方应用名称,新接口接入必须联系产品,出现问题概不负责,且有权利追求责任及接口降级 Channel uint8 `json:"channel,omitempty" codec:"channel,omitempty"` }
type GetPersonLabelListResponse ¶
type GetPersonLabelListResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *GetPersonLabelListData `` /* 174-byte string literal not displayed */ }
type GetPersonLabelListResult ¶
type GetPersonLabelListResult struct { Code int `json:"code,omitempty" codec:"code,omitempty"` Msg string `json:"msg,omitempty" codec:"code,omitempty"` DataList []GetPersonLabelListLabel `json:"dataList,omitempty" codec:"dataList,omitempty"` }
type WriteCollectCouponData ¶
type WriteCollectCouponData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` ErrorDesc string `json:"error_description,omitempty" codec:"error_description,omitempty"` Result *WriteCollectCouponResult `json:"GiftActivityResults,omitempty" codec:"GiftActivityResults,omitempty"` }
type WriteCollectCouponRequest ¶
type WriteCollectCouponRequest struct { api.BaseRequest AppName string `json:"appName,omitempty" codec:"appName,omitempty"` // 调用方应用名称,新接口接入必须联系产品,出现问题概不负责,且有权利追求责任及接口降级 AppId uint64 `json:"appId,omitempty" codec:"appId,omitempty"` Channel uint8 `json:"channel,omitempty" codec:"channel,omitempty"` Pin string `json:"pin,omitempty" codec:"pin,omitempty"` ActivityId uint64 `json:"activityId,omitempty" codec:"activityId,omitempty"` Ip string `json:"ip,omitempty" codec:"ip,omitempty"` RuleId uint64 `json:"ruleId,omitempty" codec:"ruleId,omitempty"` RfId string `json:"rfId,omitempty" codec:"rfId,omitempty"` Source uint8 `json:"source,omitempty" codec:"source,omitempty"` Type uint8 `json:"type,omitempty" codec:"type,omitempty"` }
type WriteCollectCouponResponse ¶
type WriteCollectCouponResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *WriteCollectCouponData `` /* 166-byte string literal not displayed */ }
type WritePersonInfoRequest ¶
type WritePersonInfoRequest struct { BaseRequest AppName string `json:"appName,omitempty" codec:"appName,omitempty"` // ISV服务商名称 Channel uint8 `json:"channel,omitempty" codec:"channel,omitempty"` // PC:1, APP:2, 任务中心:3,发现频道:4, 上海运营模板::5 , 微信: 6, QQ: 7, ARVR: 9 Pin string `json:"pin,omitempty" codec:"pin,omitempty"` // 用户pin OpenIdBuyer string `json:"open_id_buyer,omitempty" codec:"open_id_buyer,omitempty"` // 用户pin XIdBuyer string `json:"xid_buyer,omitempty" codec:"xid_buyer,omitempty"` // 用户pin ProfileUrl string `json:"profileUrl,omitempty" codec:"profileUrl,omitempty"` // 用户头像连接 非必填 ActivityId string `json:"activityId,omitempty" codec:"activityId,omitempty"` // 活动id Created string `json:"created,omitempty" codec:"created,omitempty"` // 创建时间 StartTime string `json:"startTime,omitempty" codec:"startTime,omitempty"` // 活动开始时间 EndTime string `json:"endTime,omitempty" codec:"endTime,omitempty"` // 结束时间 Id string `json:"id,omitempty" codec:"id,omitempty"` // id(isv自己的活动id) 非必填 Type string `json:"type,omitempty" codec:"type,omitempty"` // 活动类型 /* 投票有礼 6:购物车红包 8: 盖楼有礼 11:拼购定向投放 19: 分享有礼 20: 集卡有礼 23 锦鲤圈抽奖 25 抽奖 26 加购 27 签到 28 积分兑换 29 商品收藏 30 游戏 31 砍价拼团 32 专享价 33 组队 34 知识超人 35:粉丝互动 36:限时抢券 37:N元试用 38:前N名优惠 39:定制活动 40评价有礼 41 买家秀征集 42 关注有礼 43邀请有礼 44 浏览有礼(其他类型请联系产品) */ ActionType string `json:"actionType,omitempty" codec:"actionType,omitempty"` }
type WritePersonInfoResponse ¶
type WritePersonInfoResponse struct { ErrorResp *ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Response WritePersonInfoResponse1 `` /* 170-byte string literal not displayed */ }
type WritePersonInfoResponse1 ¶
type WritePersonInfoResponse1 struct {
Result WritePersonInfoResult `json:"giftActivityResults" codec:"giftActivityResults"`
}
type WritePersonInfoResult ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.