| | |
| | | package com.yeshi.fanli.service.inter.user.integral;
|
| | |
|
| | | import com.yeshi.fanli.entity.integral.IntegralTaskRecord;
|
| | | import com.yeshi.fanli.exception.integral.IntegralGetException;
|
| | |
|
| | | /**
|
| | | * 金币获取服务
|
| | | * |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | public interface IntegralGetService {
|
| | |
|
| | | /**
|
| | | * 添加事件统计
|
| | | * |
| | | * @param uid
|
| | | * @param params
|
| | | * 事件相关参数
|
| | | * @param event
|
| | | * 事件编码
|
| | | * @throws IntegralGetException
|
| | | */
|
| | | public IntegralTaskRecord addEventStatistic(Long uid, String event) throws IntegralGetException;
|
| | |
|
| | | /**
|
| | | * 从粘贴板推荐进入搜索结果
|
| | | * |
| | | * @param uid
|
| | | * @throws IntegralGetException
|
| | | */
|
| | | public IntegralTaskRecord addRecommendSearch(Long uid);
|
| | |
|
| | | /**
|
| | | * 搜索结果浏览
|
| | | * |
| | | * @param uid
|
| | | * @throws IntegralGetException
|
| | | */
|
| | | public IntegralTaskRecord addSearchResultScan(Long uid,String kw) ;
|
| | |
|
| | | /**
|
| | | * 分享邀请图
|
| | | * |
| | | * @param uid
|
| | | * @throws IntegralGetException
|
| | | */
|
| | | public IntegralTaskRecord addShareInvite(Long uid);
|
| | |
|
| | | /**
|
| | | * 进入店铺
|
| | | * |
| | | * @param uid
|
| | | * @throws IntegralGetException
|
| | | */
|
| | | public IntegralTaskRecord addIntoShop(Long uid, String shopUrlMD5);
|
| | |
|
| | | /**
|
| | | * 推送记录页浏览
|
| | | * |
| | | * @param uid
|
| | | * @throws IntegralGetException
|
| | | */
|
| | | public IntegralTaskRecord addScanPushHistory(Long uid) ;
|
| | |
|
| | | /**
|
| | | * 商品详情页浏览
|
| | | * |
| | | * @param uid
|
| | | * @param goodsType
|
| | | * @param goodsId
|
| | | */
|
| | | public IntegralTaskRecord addScanGoodsDetail(Long uid, int goodsType, Long goodsId);
|
| | |
|
| | | /**
|
| | | * 推荐banner浏览
|
| | | * |
| | | * @param uid
|
| | | */
|
| | | public IntegralTaskRecord addScanRecommendBanner(Long uid, String id);
|
| | |
|
| | | /**
|
| | | * 推荐专题浏览
|
| | | * |
| | | * @param uid
|
| | | */
|
| | | public IntegralTaskRecord addScanRecommendSpecial(Long uid, String id);
|
| | |
|
| | | /**
|
| | | * 淘宝购物车浏览
|
| | | * |
| | | * @param uid
|
| | | */
|
| | | public IntegralTaskRecord addScanTaoBaoCart(Long uid);
|
| | |
|
| | | /**
|
| | | * 自购立减
|
| | | * @param uid
|
| | | */
|
| | | public void addTaoLiJinBuy(Long uid, Long goodsId);
|
| | |
|
| | | /**
|
| | | * 直接邀请
|
| | | * @param uid
|
| | | * @param goodsId
|
| | | */
|
| | | public void addInviteLevelOne(Long uid, Long workerId);
|
| | |
|
| | |
|
| | | /**
|
| | | * 单个商品分享
|
| | | * @param uid
|
| | | */
|
| | | public void addShareSingleGoods(Long uid);
|
| | |
|
| | | /**
|
| | | * 多个商品分享
|
| | | * @param uid
|
| | | */
|
| | | public void addShareMultipleGoods(Long uid);
|
| | |
|
| | | /**
|
| | | * 分享爆款商品
|
| | | * @param uid
|
| | | */
|
| | | public void addShareTLJGoods(Long uid);
|
| | |
|
| | | /**
|
| | | * 赠送奖励券
|
| | | * @param uid
|
| | | */
|
| | | public void addGiveRebateCoupon(Long uid);
|
| | |
|
| | | /**
|
| | | * 赠送免单券
|
| | | * @param uid
|
| | | */
|
| | | public void addGiveFreeCoupon(Long uid);
|
| | |
|
| | | /**
|
| | | * 赠送推广红包
|
| | | * @param uid
|
| | | */
|
| | | public void addGiveTaoLiJin(Long uid);
|
| | |
|
| | | /**
|
| | | * 关闭 不喜欢商品
|
| | | * @param uid
|
| | | */
|
| | | public void addCloseRecommendGoods(Long uid);
|
| | |
|
| | | /**
|
| | | * 领券返利
|
| | | * @param uid
|
| | | */
|
| | | public void addCouponRebate(Long uid);
|
| | |
|
| | | /**
|
| | | * 返利订单
|
| | | * @param uid
|
| | | */
|
| | | public void addRebateOrder(Long uid,String orderNo,int sourceType);
|
| | |
|
| | | /**
|
| | | * 一级邀请订单
|
| | | * @param uid
|
| | | */
|
| | | public void addInviteOrderLevelOne(Long uid,String orderNo,int sourceType);
|
| | |
|
| | | /**
|
| | | * 二级邀请订单
|
| | | * @param uid
|
| | | */
|
| | | public void addInviteOrderLevelTwo(Long uid,String orderNo,int sourceType);
|
| | |
|
| | | |
| | | /**
|
| | | * 分享订单
|
| | | * @param uid
|
| | | */
|
| | | public void addShareOrder(Long uid,String orderNo,int sourceType);
|
| | |
|
| | | /**
|
| | | * 微信授权
|
| | | * @param uid
|
| | | */
|
| | | public void addBindWeiXin(Long uid);
|
| | |
|
| | | /**
|
| | | * 绑定手机
|
| | | * @param uid
|
| | | */
|
| | | public void addBindPhone(Long uid);
|
| | |
|
| | | /**
|
| | | * 淘宝授权
|
| | | * @param uid
|
| | | */
|
| | | public void addBindTaoBao(Long uid);
|
| | |
|
| | | /**
|
| | | * 添加微信号
|
| | | * @param uid
|
| | | */
|
| | | public void addSetWeiXinNum(Long uid);
|
| | |
|
| | | /**
|
| | | * 设置性别
|
| | | * @param uid
|
| | | */
|
| | | public void addSetGender(Long uid);
|
| | |
|
| | | /**
|
| | | * 修改头像
|
| | | * @param uid
|
| | | */
|
| | | public void addSetPortrait(Long uid);
|
| | |
|
| | | /**
|
| | | * 修改昵称
|
| | | * @param uid
|
| | | */
|
| | | public void addSetNickname(Long uid);
|
| | |
|
| | | /**
|
| | | * 绑定支付宝
|
| | | * @param uid
|
| | | */
|
| | | public void addBindAlipay(Long uid);
|
| | |
|
| | | /**
|
| | | * 激活邀请
|
| | | * @param uid
|
| | | */
|
| | | public void addInviteActivate(Long uid);
|
| | | |
| | | |
| | |
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.user.integral; |
| | | |
| | | import com.yeshi.fanli.entity.integral.IntegralTaskRecord; |
| | | import com.yeshi.fanli.exception.integral.IntegralGetException; |
| | | |
| | | /** |
| | | * 金币获取服务 |
| | | * |
| | | * @author Administrator |
| | | * |
| | | */ |
| | | public interface IntegralGetService { |
| | | |
| | | /** |
| | | * 添加事件统计 |
| | | * |
| | | * @param uid |
| | | * @param params |
| | | * 事件相关参数 |
| | | * @param event |
| | | * 事件编码 |
| | | * @throws IntegralGetException |
| | | */ |
| | | public IntegralTaskRecord addEventStatistic(Long uid, String event) throws IntegralGetException; |
| | | |
| | | /** |
| | | * 从粘贴板推荐进入搜索结果 |
| | | * |
| | | * @param uid |
| | | * @throws IntegralGetException |
| | | */ |
| | | public IntegralTaskRecord addRecommendSearch(Long uid); |
| | | |
| | | /** |
| | | * 搜索结果浏览 |
| | | * |
| | | * @param uid |
| | | * @throws IntegralGetException |
| | | */ |
| | | public IntegralTaskRecord addSearchResultScan(Long uid,String kw) ; |
| | | |
| | | /** |
| | | * 分享邀请图 |
| | | * |
| | | * @param uid |
| | | * @throws IntegralGetException |
| | | */ |
| | | public IntegralTaskRecord addShareInvite(Long uid); |
| | | |
| | | /** |
| | | * 进入店铺 |
| | | * |
| | | * @param uid |
| | | * @throws IntegralGetException |
| | | */ |
| | | public IntegralTaskRecord addIntoShop(Long uid, String shopUrlMD5); |
| | | |
| | | /** |
| | | * 推送记录页浏览 |
| | | * |
| | | * @param uid |
| | | * @throws IntegralGetException |
| | | */ |
| | | public IntegralTaskRecord addScanPushHistory(Long uid) ; |
| | | |
| | | /** |
| | | * 商品详情页浏览 |
| | | * |
| | | * @param uid |
| | | * @param goodsType |
| | | * @param goodsId |
| | | */ |
| | | public IntegralTaskRecord addScanGoodsDetail(Long uid, int goodsType, String goodsId); |
| | | |
| | | /** |
| | | * 推荐banner浏览 |
| | | * |
| | | * @param uid |
| | | */ |
| | | public IntegralTaskRecord addScanRecommendBanner(Long uid, String id); |
| | | |
| | | /** |
| | | * 推荐专题浏览 |
| | | * |
| | | * @param uid |
| | | */ |
| | | public IntegralTaskRecord addScanRecommendSpecial(Long uid, String id); |
| | | |
| | | /** |
| | | * 淘宝购物车浏览 |
| | | * |
| | | * @param uid |
| | | */ |
| | | public IntegralTaskRecord addScanTaoBaoCart(Long uid); |
| | | |
| | | /** |
| | | * 自购立减 |
| | | * @param uid |
| | | */ |
| | | public void addTaoLiJinBuy(Long uid, String goodsId); |
| | | |
| | | /** |
| | | * 直接邀请 |
| | | * @param uid |
| | | * @param goodsId |
| | | */ |
| | | public void addInviteLevelOne(Long uid, Long workerId); |
| | | |
| | | |
| | | /** |
| | | * 单个商品分享 |
| | | * @param uid |
| | | */ |
| | | public void addShareSingleGoods(Long uid); |
| | | |
| | | /** |
| | | * 多个商品分享 |
| | | * @param uid |
| | | */ |
| | | public void addShareMultipleGoods(Long uid); |
| | | |
| | | /** |
| | | * 分享爆款商品 |
| | | * @param uid |
| | | */ |
| | | public void addShareTLJGoods(Long uid); |
| | | |
| | | /** |
| | | * 赠送奖励券 |
| | | * @param uid |
| | | */ |
| | | public void addGiveRebateCoupon(Long uid); |
| | | |
| | | /** |
| | | * 赠送免单券 |
| | | * @param uid |
| | | */ |
| | | public void addGiveFreeCoupon(Long uid); |
| | | |
| | | /** |
| | | * 赠送推广红包 |
| | | * @param uid |
| | | */ |
| | | public void addGiveTaoLiJin(Long uid); |
| | | |
| | | /** |
| | | * 关闭 不喜欢商品 |
| | | * @param uid |
| | | */ |
| | | public void addCloseRecommendGoods(Long uid); |
| | | |
| | | /** |
| | | * 领券返利 |
| | | * @param uid |
| | | */ |
| | | public void addCouponRebate(Long uid); |
| | | |
| | | /** |
| | | * 返利订单 |
| | | * @param uid |
| | | */ |
| | | public void addRebateOrder(Long uid,String orderNo,int sourceType); |
| | | |
| | | /** |
| | | * 一级邀请订单 |
| | | * @param uid |
| | | */ |
| | | public void addInviteOrderLevelOne(Long uid,String orderNo,int sourceType); |
| | | |
| | | /** |
| | | * 二级邀请订单 |
| | | * @param uid |
| | | */ |
| | | public void addInviteOrderLevelTwo(Long uid,String orderNo,int sourceType); |
| | | |
| | | |
| | | /** |
| | | * 分享订单 |
| | | * @param uid |
| | | */ |
| | | public void addShareOrder(Long uid,String orderNo,int sourceType); |
| | | |
| | | /** |
| | | * 微信授权 |
| | | * @param uid |
| | | */ |
| | | public void addBindWeiXin(Long uid); |
| | | |
| | | /** |
| | | * 绑定手机 |
| | | * @param uid |
| | | */ |
| | | public void addBindPhone(Long uid); |
| | | |
| | | /** |
| | | * 淘宝授权 |
| | | * @param uid |
| | | */ |
| | | public void addBindTaoBao(Long uid); |
| | | |
| | | /** |
| | | * 添加微信号 |
| | | * @param uid |
| | | */ |
| | | public void addSetWeiXinNum(Long uid); |
| | | |
| | | /** |
| | | * 设置性别 |
| | | * @param uid |
| | | */ |
| | | public void addSetGender(Long uid); |
| | | |
| | | /** |
| | | * 修改头像 |
| | | * @param uid |
| | | */ |
| | | public void addSetPortrait(Long uid); |
| | | |
| | | /** |
| | | * 修改昵称 |
| | | * @param uid |
| | | */ |
| | | public void addSetNickname(Long uid); |
| | | |
| | | /** |
| | | * 绑定支付宝 |
| | | * @param uid |
| | | */ |
| | | public void addBindAlipay(Long uid); |
| | | |
| | | /** |
| | | * 激活邀请 |
| | | * @param uid |
| | | */ |
| | | public void addInviteActivate(Long uid); |
| | | |
| | | |
| | | |
| | | |
| | | } |