Documentation ¶
Index ¶
- Constants
- func WriteCollectCoupon(ctx context.Context, req *WriteCollectCouponRequest) (bool, error)
- func WritePersonInfo(ctx context.Context, req *WritePersonInfoRequest) (bool, error)
- type CreateGiftActivityData
- type CreateGiftActivityRequest
- type CreateGiftActivityResponse
- type CreateGiftActivityResult
- type FindCollectInfoData
- type FindCollectInfoDetails
- type FindCollectInfoRequest
- type FindCollectInfoResponse
- type FindCollectInfoResult
- type FindGiftInfoByIdRequest
- type FindGiftInfoByIdResponse
- type FindGiftInfoByIdResponse1
- type FindGiftInfoByIdResult
- type GetPersonLabelListData
- type GetPersonLabelListLabel
- type GetPersonLabelListLabelVal
- type GetPersonLabelListRequest
- type GetPersonLabelListResponse
- type GetPersonLabelListResult
- type GiftInfo
- 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(ctx context.Context, req *WriteCollectCouponRequest) (bool, error)
func WritePersonInfo ¶
func WritePersonInfo(ctx context.Context, 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"` }
func (CreateGiftActivityData) Error ¶ added in v1.1.1
func (r CreateGiftActivityData) Error() string
func (CreateGiftActivityData) IsError ¶ added in v1.1.1
func (r CreateGiftActivityData) IsError() bool
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 */ }
func (CreateGiftActivityResponse) Error ¶ added in v1.1.1
func (r CreateGiftActivityResponse) Error() string
func (CreateGiftActivityResponse) IsError ¶ added in v1.1.1
func (r CreateGiftActivityResponse) IsError() bool
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(ctx context.Context, 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"` }
func (FindCollectInfoData) Error ¶ added in v1.1.1
func (r FindCollectInfoData) Error() string
func (FindCollectInfoData) IsError ¶ added in v1.1.1
func (r FindCollectInfoData) IsError() bool
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(ctx context.Context, 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 */ }
func (FindCollectInfoResponse) Error ¶ added in v1.1.1
func (r FindCollectInfoResponse) Error() string
func (FindCollectInfoResponse) IsError ¶ added in v1.1.1
func (r FindCollectInfoResponse) IsError() bool
type FindCollectInfoResult ¶
type FindCollectInfoResult struct { Data []FindCollectInfoDetails `json:"data,omitempty" codec:"data,omitempty"` Code int `json:"code" codec:"code"` Msg string `json:"msg" codec:"msg"` }
func (FindCollectInfoResult) Error ¶ added in v1.1.1
func (r FindCollectInfoResult) Error() string
func (FindCollectInfoResult) IsError ¶ added in v1.1.1
func (r FindCollectInfoResult) IsError() bool
type FindGiftInfoByIdRequest ¶ added in v1.1.12
type FindGiftInfoByIdRequest struct { BaseRequest AppName string `json:"appName" codec:"appName"` // ISV服务商名称 AppId uint64 `json:"appId" codec:"appId"` // 应用id,jos默认为1784 Channel uint8 `json:"channel" codec:"channel"` // PC:1, APP:2, 任务中心:3,发现频道:4, 上海运营模板::5 , 微信: 6, QQ: 7, ARVR: 9 Type uint8 `json:"type" codec:"type"` // 活动类型 ActivityId uint64 `json:"activityId" codec:"activityId"` // 活动id }
type FindGiftInfoByIdResponse ¶ added in v1.1.12
type FindGiftInfoByIdResponse struct { ErrorResp *ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Response FindGiftInfoByIdResponse1 `` /* 230-byte string literal not displayed */ }
func (FindGiftInfoByIdResponse) Error ¶ added in v1.1.12
func (r FindGiftInfoByIdResponse) Error() string
func (FindGiftInfoByIdResponse) IsError ¶ added in v1.1.12
func (r FindGiftInfoByIdResponse) IsError() bool
type FindGiftInfoByIdResponse1 ¶ added in v1.1.12
type FindGiftInfoByIdResponse1 struct {
Result FindGiftInfoByIdResult `json:"returnType" codec:"returnType"`
}
func (FindGiftInfoByIdResponse1) Error ¶ added in v1.1.12
func (r FindGiftInfoByIdResponse1) Error() string
func (FindGiftInfoByIdResponse1) IsError ¶ added in v1.1.12
func (r FindGiftInfoByIdResponse1) IsError() bool
type FindGiftInfoByIdResult ¶ added in v1.1.12
type FindGiftInfoByIdResult struct { Data *GiftInfo `json:"data" codec:"data"` // 互动活动信息 Code int `json:"code" codec:"code"` // 返回状态码 Msg string `json:"msg" codec:"msg"` }
func (FindGiftInfoByIdResult) Error ¶ added in v1.1.12
func (r FindGiftInfoByIdResult) Error() string
func (FindGiftInfoByIdResult) IsError ¶ added in v1.1.12
func (r FindGiftInfoByIdResult) IsError() bool
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"` }
func (GetPersonLabelListData) Error ¶ added in v1.1.1
func (r GetPersonLabelListData) Error() string
func (GetPersonLabelListData) IsError ¶ added in v1.1.1
func (r GetPersonLabelListData) IsError() bool
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(ctx context.Context, 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 */ }
func (GetPersonLabelListResponse) Error ¶ added in v1.1.1
func (r GetPersonLabelListResponse) Error() string
func (GetPersonLabelListResponse) IsError ¶ added in v1.1.1
func (r GetPersonLabelListResponse) IsError() bool
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"` }
func (GetPersonLabelListResult) Error ¶ added in v1.1.1
func (r GetPersonLabelListResult) Error() string
func (GetPersonLabelListResult) IsError ¶ added in v1.1.1
func (r GetPersonLabelListResult) IsError() bool
type GiftInfo ¶ added in v1.1.12
type GiftInfo struct { IsPrize uint8 `json:"isPrize"` // 是否为有奖活动: 0:无奖活动,1:有奖活动 Modifier string `json:"modifier,omitempty"` // 商家修改活动的用户pin VenderId uint64 `json:"venderId"` // 商家id SourceLink string `json:"sourceLink,omitempty"` // 其他活动连接 IsSinglePrize uint8 `json:"isSinglePrize,omitempty"` // 是否是单独奖项(单独奖项在同一个活动中,同一个pin可以领取多种类型奖项) 0或null(默认): 同一个活动,一个pin只能领取一次(和collectTimes无关) 1是单独奖项:在同一个活动中,同一个pin可以领取多种类型奖项 Source uint8 `json:"source"` // 系统来源(PC:1, APP:2, 任务中心:3,发现:4, 上海运营模板::5 , 微信: 6, QQ: 7, ISV:8,ARVR: 9) Type uint8 `json:"type"` // 活动类型(1:投票有礼 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 浏览有礼(其他类型请联系产品)) ModelIds string `json:"modelIds,omitempty"` // 用户人群Id,以下划线分割 Modified uint64 `json:"modified"` // 活动修改时间 RfId int64 `json:"rfId,omitempty"` // 业务id StartTime uint64 `json:"startTime"` // 活动开始时间 Id uint64 `json:"id"` // 活动id Validate string `json:"validate,omitempty"` // 插件有效期 IsEverydayAward uint8 `json:"isEverydayAward,omitempty"` // 是否每天发放 0或null: 默认为活动维度发放,一个活动中,一个Pin只能领取一次 1: 按照每天发放 Creator string `json:"creator"` // 商家创建活动用户pin SubtitleName string `json:"subtitleName,omitempty"` // 活动副标题 Created uint64 `json:"created"` // 活动创建时间 TaskIds string `json:"taskIds,omitempty"` // 用户人群taskIds Name string `json:"name"` // 活动名称 SourceCloseLink string `json:"sourceCloseLink,omitempty"` // 其他活动关闭连接 PictureLink string `json:"pictureLink,omitempty"` // 活动图片连接 EndTime uint64 `json:"endTime"` // 活动结束时间 SourceName string `json:"sourceName"` // 官方活动: interact-center 其他活动:isv Status uint8 `json:"status"` // 活动状态(仅说明,写接口不需要传该值):1:正在创建中 2: 已经创建 4:活动被商家取消 5: 活动已经结束(包含奖项发完及活动自然结束) 6:活动创建异常 9:进行中 }
func FindGiftInfoById ¶ added in v1.1.12
func FindGiftInfoById(ctx context.Context, req *FindGiftInfoByIdRequest) (*GiftInfo, error)
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"` }
func (WriteCollectCouponData) Error ¶ added in v1.1.1
func (r WriteCollectCouponData) Error() string
func (WriteCollectCouponData) IsError ¶ added in v1.1.1
func (r WriteCollectCouponData) IsError() bool
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 */ }
func (WriteCollectCouponResponse) Error ¶ added in v1.1.1
func (r WriteCollectCouponResponse) Error() string
func (WriteCollectCouponResponse) IsError ¶ added in v1.1.1
func (r WriteCollectCouponResponse) IsError() bool
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 uint64 `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 uint8 `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 */ }
func (WritePersonInfoResponse) Error ¶ added in v1.1.1
func (r WritePersonInfoResponse) Error() string
func (WritePersonInfoResponse) IsError ¶ added in v1.1.1
func (r WritePersonInfoResponse) IsError() bool
type WritePersonInfoResponse1 ¶
type WritePersonInfoResponse1 struct {
Result WritePersonInfoResult `json:"giftActivityResults" codec:"giftActivityResults"`
}
func (WritePersonInfoResponse1) Error ¶ added in v1.1.1
func (r WritePersonInfoResponse1) Error() string
func (WritePersonInfoResponse1) IsError ¶ added in v1.1.1
func (r WritePersonInfoResponse1) IsError() bool
type WritePersonInfoResult ¶
type WritePersonInfoResult struct { Data bool `json:"data" codec:"data"` // 请求是否成功 Code int `json:"code" codec:"code"` // 返回状态码 Msg string `json:"msg" codec:"msg"` }
func (WritePersonInfoResult) Error ¶ added in v1.1.1
func (r WritePersonInfoResult) Error() string
func (WritePersonInfoResult) IsError ¶ added in v1.1.1
func (r WritePersonInfoResult) IsError() bool
Source Files ¶
Click to show internal directories.
Click to hide internal directories.