Documentation
¶
Index ¶
- func BatchInsertOrUpdateRule(req *BatchInsertOrUpdateRuleRequest) (bool, error)
- func JosSendPoints(req *JosSendPointsRequest) (bool, error)
- type BatchInsertOrUpdateRuleData
- type BatchInsertOrUpdateRuleJsfResult
- type BatchInsertOrUpdateRuleRequest
- type BatchInsertOrUpdateRuleResponse
- type GetCouponInfoData
- type GetCouponInfoJsfResult
- type GetCouponInfoRequest
- type GetCouponInfoResponse
- type GetPointsExchangeGiftListData
- type GetPointsExchangeGiftListJsfResult
- type GetPointsExchangeGiftListRequest
- type GetPointsExchangeGiftListResponse
- type GetPointsRuleData
- type GetPointsRuleRequest
- type GetPointsRuleResponse
- type JosSendPointsData
- type JosSendPointsJsfResult
- type JosSendPointsRequest
- type JosSendPointsResponse
- type JsfResult
- type PointsCouponInfo
- type PointsExchangeGiftDTO
- type PointsExchangeGiftSkuDTO
- type PointsRule
- type QueryGiftSkuByExchangeGiftIdData
- type QueryGiftSkuByExchangeGiftIdJsfResult
- type QueryGiftSkuByExchangeGiftIdRequest
- type QueryGiftSkuByExchangeGiftIdResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchInsertOrUpdateRule ¶
func BatchInsertOrUpdateRule(req *BatchInsertOrUpdateRuleRequest) (bool, error)
TODO 设置积分规则 按商家后台规则进行设置
func JosSendPoints ¶
func JosSendPoints(req *JosSendPointsRequest) (bool, error)
TODO 积分变更开放接口 开放请求的渠道为:26-消费积分 27-发放积分
Types ¶
type BatchInsertOrUpdateRuleData ¶
type BatchInsertOrUpdateRuleData struct {
JsfResult *BatchInsertOrUpdateRuleJsfResult `json:"jsfResult,omitempty" codec:"jsfResult,omitempty"`
}
type BatchInsertOrUpdateRuleRequest ¶
type BatchInsertOrUpdateRuleRequest struct { api.BaseRequest Multiple float64 `json:"multiple"` //兑换倍数 CreateTime string `json:"createTime"` //创建记录时间 2006-01-02 15:04:05 ModifyTime string `json:"modifyTime"` //记录修改时间 2006-01-02 15:04:05 }
type BatchInsertOrUpdateRuleResponse ¶
type BatchInsertOrUpdateRuleResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *BatchInsertOrUpdateRuleData `` /* 140-byte string literal not displayed */ }
type GetCouponInfoData ¶
type GetCouponInfoData struct {
JsfResult *GetCouponInfoJsfResult `json:"jsfResult,omitempty" codec:"jsfResult,omitempty"`
}
type GetCouponInfoJsfResult ¶
type GetCouponInfoJsfResult struct { Code string `json:"code,omitempty" codec:"code,omitempty"` //返回码 Desc string `json:"desc,omitempty" codec:"desc,omitempty"` //返回描述 Result []*PointsCouponInfo `json:"result,omitempty" codec:"result,omitempty"` //优惠券信息 }
type GetCouponInfoRequest ¶
type GetCouponInfoRequest struct {
api.BaseRequest
}
type GetCouponInfoResponse ¶
type GetCouponInfoResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *GetCouponInfoData `json:"jingdong_points_jos_getCouponInfo_responce,omitempty" codec:"jingdong_points_jos_getCouponInfo_responce,omitempty"` }
type GetPointsExchangeGiftListData ¶
type GetPointsExchangeGiftListData struct {
JsfResult *GetPointsExchangeGiftListJsfResult `json:"jsfResult,omitempty" codec:"jsfResult,omitempty"`
}
type GetPointsExchangeGiftListJsfResult ¶
type GetPointsExchangeGiftListJsfResult struct { Code string `json:"code,omitempty" codec:"code,omitempty"` //返回码 Desc string `json:"desc,omitempty" codec:"desc,omitempty"` //返回描述 Result []*PointsExchangeGiftDTO `json:"result,omitempty" codec:"result,omitempty"` //活动列表 }
type GetPointsExchangeGiftListRequest ¶
type GetPointsExchangeGiftListRequest struct {
api.BaseRequest
}
type GetPointsExchangeGiftListResponse ¶
type GetPointsExchangeGiftListResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *GetPointsExchangeGiftListData `` /* 144-byte string literal not displayed */ }
type GetPointsRuleData ¶
type GetPointsRuleRequest ¶
type GetPointsRuleRequest struct {
api.BaseRequest
}
type GetPointsRuleResponse ¶
type GetPointsRuleResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *GetPointsRuleData `json:"jingdong_points_jos_getPointsRule_responce,omitempty" codec:"jingdong_points_jos_getPointsRule_responce,omitempty"` }
type JosSendPointsData ¶
type JosSendPointsData struct {
JsfResult *JosSendPointsJsfResult `json:"jsfResult,omitempty" codec:"jsfResult,omitempty"`
}
type JosSendPointsJsfResult ¶
type JosSendPointsRequest ¶
type JosSendPointsRequest struct { api.BaseRequest Pin string `json:"pin,omitempty" codec:"pin,omitempty"` //用户Pin BusinessId string `json:"businessId,omitempty" codec:"businessId,omitempty"` //防重ID SourceType uint8 `json:"sourceType,omitempty" codec:"sourceType,omitempty"` //渠道类型:26-消费积分 27-发放积分 Points int64 `json:"points,omitempty" codec:"points,omitempty"` //积分变更值 }
type JosSendPointsResponse ¶
type JosSendPointsResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *JosSendPointsData `json:"jingdong_points_jos_sendPoints_responce,omitempty" codec:"jingdong_points_jos_sendPoints_responce,omitempty"` }
type JsfResult ¶
type JsfResult struct { Result []*PointsRule `json:"jsfResult,omitempty" codec:"jsfResult,omitempty"` Code string `json:"code,omitempty" codec:"code,omitempty"` Desc string `json:"desc,omitempty" codec:"desc,omitempty"` }
type PointsCouponInfo ¶
type PointsCouponInfo struct { BatchId uint64 `json:"batch_id,omitempty" codec:"batch_id,omitempty"` // 批次id BatchKey string `json:"batchKey,omitempty" codec:"batchKey,omitempty"` // 批次Key VenderId uint64 `json:"venderId,omitempty" codec:"venderId,omitempty"` // 商家ID Create string `json:"create,omitempty" codec:"create,omitempty"` // 优惠券创建时间 Discount uint64 `json:"discount,omitempty" codec:"discount,omitempty"` // 积分券面额 Condition uint64 `json:"condition,omitempty" codec:"condition,omitempty"` // 满减金额 CouponType uint8 `json:"couponType,omitempty" codec:"couponType,omitempty"` // 优惠券类型 0:京券 1:东券 Points uint64 `json:"points,omitempty" codec:"points,omitempty"` // 所需积分值 UsePlatList []uint8 `json:"usePlatList,omitempty" codec:"usePlatList,omitempty"` // 使用平台 PlatFormDesc []string `json:"platFormDesc,omitempty" codec:"platFormDesc,omitempty"` //使用平台描述 Period uint64 `json:"period,omitempty" codec:"period,omitempty"` //优惠券有效期 SendCount uint64 `json:"sendCount,omitempty" codec:"sendCount,omitempty"` //发行量 TradeCount uint64 `json:"tradeCount,omitempty" codec:"tradeCount,omitempty"` //已经领取量 RemainingCount uint64 `json:"remainingCount,omitempty" codec:"remainingCount,omitempty"` // 剩余量 FullPlat uint8 `json:"fullPlat,omitempty" codec:"fullPlat,omitempty"` //是否全平台使用 1:全平台 3:限平台 ActivityStartTime string `json:"activityStartTime,omitempty" codec:"activityStartTime,omitempty"` //活动开始时间 ActivityEndTime string `json:"activityEndTime,omitempty" codec:"activityEndTime,omitempty"` //活动结束时间 RealCouponId uint64 `json:"realCouponId,omitempty" codec:"realCouponId,omitempty"` //卡券组ID }
func GetCouponInfo ¶
func GetCouponInfo(req *GetCouponInfoRequest) ([]*PointsCouponInfo, error)
TODO 通过venderId查询商家设置的积分可兑换优惠券信息
type PointsExchangeGiftDTO ¶
type PointsExchangeGiftDTO struct { Id uint64 `json:"id,omitempty" codec:"id,omitempty"` //活动id VenderId uint64 `json:"venderId,omitempty" codec:"venderId,omitempty"` //商家ID ActivityName string `json:"activityName,omitempty" codec:"activityName,omitempty"` //活动名称 ActivityStartTime int64 `json:"activityStartTime,omitempty" codec:"activityStartTime,omitempty"` //活动开始时间 ActivityEndTime int64 `json:"activityEndTime,omitempty" codec:"activityEndTime,omitempty"` //活动结束时间 ActivityStatus uint16 `json:"activityStatus,omitempty" codec:"activityStatus,omitempty"` //活动状态 CreateTime int64 `json:"createTime,omitempty" codec:"createTime,omitempty"` //创建时间 UpdateTime int64 `json:"updateTime,omitempty" codec:"updateTime,omitempty"` //更新时间 ActivityStatusString string `json:"activityStatusString,omitempty" codec:"activityStatusString,omitempty"` //活动页面显示状态 }
func GetPointsExchangeGiftList ¶
func GetPointsExchangeGiftList(req *GetPointsExchangeGiftListRequest) ([]*PointsExchangeGiftDTO, error)
TODO 查询正在进行中的积分兑换商品活动列表
type PointsExchangeGiftSkuDTO ¶
type PointsExchangeGiftSkuDTO struct { Id uint64 `json:"id,omitempty" codec:"id,omitempty"` //主键 ActivityStartTime int64 `json:"activityStartTime,omitempty" codec:"activityStartTime,omitempty"` //活动开始时间 ActivityEndTime int64 `json:"activityEndTime,omitempty" codec:"activityEndTime,omitempty"` //活动结束时间 ActivityPrice float64 `json:"activityPrice,omitempty" codec:"activityPrice,omitempty"` //活动价 ActivityStatus uint8 `json:"activityStatus,omitempty" codec:"activityStatus,omitempty"` //活动状态:1-创建中、2-创建成功、3-失效中、 4-失效 CreateTime int64 `json:"createTime,omitempty" codec:"createTime,omitempty"` //创建时间 HasExchange bool `json:"hasExchange,omitempty" codec:"hasExchange,omitempty"` //是否已兑换 HasConsume bool `json:"hasConsume,omitempty" codec:"hasConsume,omitempty"` //是否已消费 Points uint64 `json:"points,omitempty" codec:"points,omitempty"` //兑换商品所需积分 PointsExchangeGiftId uint64 `json:"pointsExchangeGiftId,omitempty" codec:"pointsExchangeGiftId,omitempty"` //积分兑换商品活动表主键 PromoId uint64 `json:"promoId,omitempty" codec:"promoId,omitempty"` // pop促销ID PromoStatus uint8 `json:"promoStatus,omitempty" codec:"promoStatus,omitempty"` // 促销状态:1-创建中 2-待审核 3-通过 4-驳回 6-已删除 110-售完 SkuId uint64 `json:"skuId,omitempty" codec:"skuId,omitempty"` // SKU编码 UpdateTime int64 `json:"updateTime,omitempty" codec:"updateTime,omitempty"` // 更新时间 VenderId uint64 `json:"venderId,omitempty" codec:"venderId,omitempty"` // 商家id WareId uint64 `json:"wareId,omitempty" codec:"wareId,omitempty"` // 商品编号 }
func QueryGiftSkuByExchangeGiftId ¶
func QueryGiftSkuByExchangeGiftId(req *QueryGiftSkuByExchangeGiftIdRequest) ([]*PointsExchangeGiftSkuDTO, error)
TODO 根据积分兑换商品活动id 获取商品信息
type PointsRule ¶
type PointsRule struct { RuleId string `json:"ruleId"` VenderId int64 `json:"venderId"` Points int64 `json:"points"` Type int8 `json:"type"` Multiple float64 `json:"multiple"` }
func GetPointsRule ¶
func GetPointsRule(req *GetPointsRuleRequest) ([]*PointsRule, error)
type QueryGiftSkuByExchangeGiftIdData ¶
type QueryGiftSkuByExchangeGiftIdData struct {
JsfResult *QueryGiftSkuByExchangeGiftIdJsfResult `json:"jsfResult,omitempty" codec:"jsfResult,omitempty"`
}
type QueryGiftSkuByExchangeGiftIdJsfResult ¶
type QueryGiftSkuByExchangeGiftIdJsfResult struct { Code string `json:"code,omitempty" codec:"code,omitempty"` //返回码 Desc string `json:"desc,omitempty" codec:"desc,omitempty"` //返回描述 Result []*PointsExchangeGiftSkuDTO `json:"result,omitempty" codec:"result,omitempty"` }
type QueryGiftSkuByExchangeGiftIdRequest ¶
type QueryGiftSkuByExchangeGiftIdRequest struct { api.BaseRequest GiftId uint64 `json:"gift_id,omitempty" codec:"gift_id,omitempty"` //活动id }
type QueryGiftSkuByExchangeGiftIdResponse ¶
type QueryGiftSkuByExchangeGiftIdResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *QueryGiftSkuByExchangeGiftIdData `` /* 150-byte string literal not displayed */ }
Click to show internal directories.
Click to hide internal directories.