Documentation ¶
Index ¶
- func ShopGiftClose(req *ShopGiftCloseRequest) (bool, error)
- func ShopGiftCreate(req *ShopGiftCreateRequest) (uint64, error)
- func ShopGiftDraw(req *ShopGiftDrawRequest) (uint64, error)
- type PopShopGiftListData
- type PopShopGiftListModel
- type PopShopGiftListRequest
- type PopShopGiftListResponse
- type PopShopGiftListResult
- type ShopGiftActivityDomain
- type ShopGiftCloseData
- type ShopGiftCloseRequest
- type ShopGiftCloseResponse
- type ShopGiftCloseResult
- type ShopGiftCreateData
- type ShopGiftCreateRequest
- type ShopGiftCreateResponse
- type ShopGiftCreateResult
- type ShopGiftDrawData
- type ShopGiftDrawRequest
- type ShopGiftDrawResponse
- type ShopGiftDrawResult
- type ShopGiftGroupModel
- type ShopGiftGroupModelListData
- type ShopGiftGroupModelListRequest
- type ShopGiftGroupModelListResponse
- type ShopGiftGroupModelListResult
- type ShopGiftValidActivityData
- type ShopGiftValidActivityRequest
- type ShopGiftValidActivityResponse
- type ShopGiftValidActivityResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShopGiftClose ¶
func ShopGiftClose(req *ShopGiftCloseRequest) (bool, error)
func ShopGiftCreate ¶
func ShopGiftCreate(req *ShopGiftCreateRequest) (uint64, error)
func ShopGiftDraw ¶
func ShopGiftDraw(req *ShopGiftDrawRequest) (uint64, error)
Types ¶
type PopShopGiftListData ¶
type PopShopGiftListData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` ErrorDesc string `json:"error_description,omitempty" codec:"error_description,omitempty"` Result *PopShopGiftListResult `json:"commonResult,omitempty" codec:"commonResult,omitempty"` }
type PopShopGiftListModel ¶
type PopShopGiftListModel struct { Id uint64 `json:"id"` // 奖励Id VenderId uint64 `json:"venderId"` // 商家id ActivityId uint64 `json:"activityId"` // 活动id PrizeType uint8 `json:"prizeType"` // 奖品类型 Discount uint `json:"discount"` // 积分/京豆:单位发放数量;优惠金额: 优惠券面值 Quota uint `json:"quota"` // 满足优惠的最低消费额 ModelNameList []string `json:"modelNameList"` // 人群列表 }
func PopShopGiftList ¶
func PopShopGiftList(req *PopShopGiftListRequest) ([]*PopShopGiftListModel, error)
type PopShopGiftListRequest ¶
type PopShopGiftListRequest struct { api.BaseRequest UserPin string `json:"userPin" codec:"userPin"` Channel uint8 `json:"channel" codec:"channel"` // 渠道来源,pc:1 app:2 等 OpenIdBuyer string `json:"open_id_buyer" codec:"open_id_buyer"` }
type PopShopGiftListResponse ¶
type PopShopGiftListResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *PopShopGiftListData `` /* 142-byte string literal not displayed */ }
type PopShopGiftListResult ¶
type PopShopGiftListResult struct { Code string `json:"code,omitempty" codec:"code,omitempty"` Desc string `json:"desc,omitempty" codec:"desc,omitempty"` Data []*PopShopGiftListModel `json:"data,omitempty" codec:"data,omitempty"` }
type ShopGiftActivityDomain ¶
type ShopGiftActivityDomain struct { Id uint64 `json:"id"` // 活动id VenderId uint64 `json:"venderId"` // 商家id ModelId uint64 `json:"modelId"` // 人群模型id ActivityName string `json:"activityName"` // 活动名称 ActivityStartTime uint64 `json:"activityStartTime"` // 活动开始时间 ActivityEndTime uint64 `json:"activityEndTime"` // 活动结束时间 }
func ShopGiftValidActivity ¶
func ShopGiftValidActivity(req *ShopGiftValidActivityRequest) (*ShopGiftActivityDomain, error)
type ShopGiftCloseData ¶
type ShopGiftCloseData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` ErrorDesc string `json:"error_description,omitempty" codec:"error_description,omitempty"` Result *ShopGiftCloseResult `json:"closeshopgiftcallback_result,omitempty" codec:"closeshopgiftcallback_result,omitempty"` }
type ShopGiftCloseRequest ¶
type ShopGiftCloseRequest struct { api.BaseRequest ActivityId uint64 `json:"activityId" codec:"activityId"` // 活动ID }
type ShopGiftCloseResponse ¶
type ShopGiftCloseResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *ShopGiftCloseData `` /* 148-byte string literal not displayed */ }
type ShopGiftCloseResult ¶
type ShopGiftCreateData ¶
type ShopGiftCreateData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` ErrorDesc string `json:"error_description,omitempty" codec:"error_description,omitempty"` Result *ShopGiftCreateResult `json:"createisvshopgift_result,omitempty" codec:"createisvshopgift_result,omitempty"` }
type ShopGiftCreateRequest ¶
type ShopGiftCreateRequest struct { api.BaseRequest Name string `json:"name" codec:"name"` // 活动名称 StartDate string `json:"startDate" codec:"startDate"` // 活动开始时间 EndDate string `json:"endDate" codec:"endDate"` // 活动结束时间 ModelIds string `json:"modelIds" codec:"modelIds"` // 活动对应的人群包的id,用下划线分割;商家的人群包信息通过jingdong.pop.crm.shopGift.getGroupModelList查询,系统定义人群和系统推荐及自定义人群不能同时存在,且系统自定义人群单选 Creator string `json:"creator" codec:"creator"` // 活动创建者,商家用户pin CreateChannel string `json:"createChannel" codec:"createChannel"` // 活动创建渠道,isv侧填写固定值:SHOP_GIFT_ISV CloseLink string `json:"closeLink" codec:"closeLink"` // 关闭活动链接,商家可在商家后台点击链接,关闭活动 IsvName string `json:"isvName" codec:"isvName"` // ISV服务商的名称/在京麦平台作为插件的名称 ActivityLink string `json:"activityLink" codec:"activityLink"` // ISV活动页链接,做奖项的展示,需要提前与京东app侧协议接入 RequestPin string `json:"requestPin" codec:"requestPin"` // 创建者的用户pin IsvValidate string `json:"isvValidate,omitempty" codec:"isvValidate,omitempty"` // isv插件有效期 SendNumber string `json:"sendNumber,omitempty" codec:"sendNumber,omitempty"` // 发放总量 OpenIdSeller string `json:"open_id_seller" codec:"open_id_seller"` // 活动创建者,商家用户pin OpenIdIsv string `json:"open_id_isv" codec:"open_id_isv"` // 创建者的用户pin Discount string `json:"discount" codec:"discount"` // 优惠金额 单位奖项额度 京券、东券、京豆、积分; 例满100减1的东券,此处填写1, Quota string `json:"quota,omitempty" codec:"quota,omitempty"` // 满足优惠的消费金额 -东券;例满100减1的东券,此处填写100 ValidateDay string `json:"validateDay,omitempty" codec:"validateDay,omitempty"` // 有效期(天数) --东券 京券 PrizeType string `json:"prizeType" codec:"prizeType"` // 奖品类型code及代表类型如下: 0:京券 1:东券 4:京豆 6:积分 SendCount string `json:"sendCount" codec:"sendCount"` // 奖项发放人数 }
type ShopGiftCreateResponse ¶
type ShopGiftCreateResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *ShopGiftCreateData `` /* 134-byte string literal not displayed */ }
type ShopGiftCreateResult ¶
type ShopGiftDrawData ¶
type ShopGiftDrawData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` ErrorDesc string `json:"error_description,omitempty" codec:"error_description,omitempty"` Result *ShopGiftDrawResult `json:"createshopgift_result,omitempty" codec:"createshopgift_result,omitempty"` }
type ShopGiftDrawRequest ¶
type ShopGiftDrawRequest struct { api.BaseRequest UserPin string `json:"userPin" codec:"userPin"` // 用户密文pin ActivityId uint64 `json:"activityId" codec:"activityId"` // 活动ID Ip string `json:"ip" codec:"ip"` // 领取礼包的ip BussinessId string `json:"bussinessId" codec:"bussinessId"` // 调用方的业务id Channel uint8 `json:"channel" codec:"channel"` // 领取礼包的渠道 OpenIdBuyer string `json:"open_id_buyer" codec:"open_id_buyer"` // 用户密文pin }
type ShopGiftDrawResponse ¶
type ShopGiftDrawResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *ShopGiftDrawData `` /* 130-byte string literal not displayed */ }
type ShopGiftDrawResult ¶
type ShopGiftGroupModel ¶
type ShopGiftGroupModel struct { Id uint64 `json:"id"` // 人群id VenderId int `json:"venderId"` // 商家id ModelId int `json:"modelId"` // 人群模型id ModelName string `json:"modelName"` // 人群名称 ModelDesc string `json:"modelDesc"` // 人群名称描述 SRange string `json:"range,omitempty"` // 范围 RuleExp string `json:"ruleExp"` // 规则 IsDelete uint8 `json:"isDelete"` // 是否删除 CreateTime uint64 `json:"createTime"` // 创建时间 ModifyTime uint64 `json:"modifyTime"` // 修改时间 ModelNum uint `json:"modelNum"` // 模型数 ModelType uint `json:"modelType"` // 模型类型 TaskId uint64 `json:"taskId,omitempty"` // 任务id Status int `json:"status"` // 状态 ModelDescList []string `json:"modelDescList"` // 人群信息描述 }
func ShopGiftGroupModelList ¶
func ShopGiftGroupModelList(req *ShopGiftGroupModelListRequest) ([]*ShopGiftGroupModel, error)
type ShopGiftGroupModelListData ¶
type ShopGiftGroupModelListData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` ErrorDesc string `json:"error_description,omitempty" codec:"error_description,omitempty"` Result *ShopGiftGroupModelListResult `json:"commonResult,omitempty" codec:"commonResult,omitempty"` }
type ShopGiftGroupModelListRequest ¶
type ShopGiftGroupModelListRequest struct { api.BaseRequest Channel uint8 `json:"channel" codec:"channel"` // 渠道来源,pc:1 app:2 等 }
type ShopGiftGroupModelListResponse ¶
type ShopGiftGroupModelListResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *ShopGiftGroupModelListData `` /* 140-byte string literal not displayed */ }
type ShopGiftGroupModelListResult ¶
type ShopGiftGroupModelListResult struct { Code string `json:"code,omitempty" codec:"code,omitempty"` Desc string `json:"desc,omitempty" codec:"desc,omitempty"` Data []*ShopGiftGroupModel `json:"data,omitempty" codec:"data,omitempty"` }
type ShopGiftValidActivityData ¶
type ShopGiftValidActivityData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` ErrorDesc string `json:"error_description,omitempty" codec:"error_description,omitempty"` Result *ShopGiftValidActivityResult `json:"commonResult,omitempty" codec:"commonResult,omitempty"` }
type ShopGiftValidActivityRequest ¶
type ShopGiftValidActivityRequest struct { api.BaseRequest Channel uint8 `json:"channel" codec:"channel"` // 渠道来源,pc:1 app:2 等 }
type ShopGiftValidActivityResponse ¶
type ShopGiftValidActivityResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *ShopGiftValidActivityData `` /* 138-byte string literal not displayed */ }
type ShopGiftValidActivityResult ¶
type ShopGiftValidActivityResult struct { Code string `json:"code,omitempty" codec:"code,omitempty"` Desc string `json:"msg,omitempty" codec:"desc,omitempty"` Data *ShopGiftActivityDomain `json:"data,omitempty" codec:"data,omitempty"` }
Click to show internal directories.
Click to hide internal directories.