| | |
| | | package com.yeshi.fanli.service.inter.user.tb;
|
| | |
|
| | | import com.yeshi.fanli.entity.SystemEnum;
|
| | | import com.yeshi.fanli.entity.bus.user.UserExtraTaoBaoInfo;
|
| | | import com.yeshi.fanli.exception.user.UserExtraTaoBaoInfoException;
|
| | |
|
| | | /**
|
| | | * 用户淘宝联盟服务
|
| | | * |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | public interface UserExtraTaoBaoInfoService {
|
| | |
|
| | | /**
|
| | | * 添加渠道ID
|
| | | * |
| | | * @param uid
|
| | | * @param relationId
|
| | | */
|
| | | public void addRelationId(Long uid, String relationId, String taoBaoUid, String nickName,
|
| | | boolean valid) throws UserExtraTaoBaoInfoException;
|
| | |
|
| | | /**
|
| | | * 添加会员ID
|
| | | * |
| | | * @param uid
|
| | | * @param specialId
|
| | | */
|
| | | public void addSpecialId(Long uid, String specialId, String taoBaoUid, String nickName,
|
| | | boolean valid) throws UserExtraTaoBaoInfoException;
|
| | |
|
| | | /**
|
| | | * 通过UID获取淘宝联盟渠道信息
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public UserExtraTaoBaoInfo getByUid(Long uid);
|
| | |
|
| | | /**
|
| | | * 选择性更新
|
| | | * |
| | | * @param ue
|
| | | */
|
| | | public void updateSelective(UserExtraTaoBaoInfo ue);
|
| | |
|
| | | /**
|
| | | * 解绑用户
|
| | | * |
| | | * @param uid
|
| | | */
|
| | | public void unBindUid(Long uid);
|
| | |
|
| | | /**
|
| | | * 绑定淘宝后6位
|
| | | * |
| | | * @param taoBaoUid
|
| | | * @param orderId
|
| | | */
|
| | | public void bindTaoBaoOrderEnd6Num(String taoBaoUid, String orderId);
|
| | |
|
| | | /**
|
| | | * 通过渠道ID查询用户(用户信息不为空)
|
| | | * @param relationId
|
| | | * @return
|
| | | */
|
| | | public UserExtraTaoBaoInfo getByRelationId(String relationId, SystemEnum system);
|
| | |
|
| | | /**
|
| | | * 通过会员运营ID查询用户(用户信息不为空)
|
| | | * @param specialId
|
| | | * @return
|
| | | */
|
| | | public UserExtraTaoBaoInfo getBySpecialId(String specialId, SystemEnum system);
|
| | |
|
| | |
|
| | | /**
|
| | | * 添加会员ID/渠道ID
|
| | | * @param uid
|
| | | * @param relationId 渠道ID
|
| | | * @param specialId 会员ID
|
| | | * @param taoBaoUid
|
| | | * @param valid
|
| | | * @throws UserExtraTaoBaoInfoException
|
| | | */
|
| | | public void saveUserTaoBaoInfo(Long uid, String relationId, String specialId, String taoBaoUid, String nickName,
|
| | | boolean valid) throws UserExtraTaoBaoInfoException;
|
| | | |
| | | |
| | | /**
|
| | | * 获取渠道ID
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public String getRelationIdByUid(Long uid);
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.user.tb; |
| | | |
| | | import com.yeshi.fanli.entity.SystemEnum; |
| | | import com.yeshi.fanli.entity.bus.user.UserExtraTaoBaoInfo; |
| | | import com.yeshi.fanli.exception.user.UserExtraTaoBaoInfoException; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 用户淘宝联盟服务 |
| | | * |
| | | * @author Administrator |
| | | * |
| | | */ |
| | | public interface UserExtraTaoBaoInfoService { |
| | | |
| | | /** |
| | | * 添加渠道ID |
| | | * |
| | | * @param uid |
| | | * @param relationId |
| | | */ |
| | | public void addRelationId(Long uid, String relationId, String taoBaoUid, String nickName, |
| | | boolean valid) throws UserExtraTaoBaoInfoException; |
| | | |
| | | /** |
| | | * 添加会员ID |
| | | * |
| | | * @param uid |
| | | * @param specialId |
| | | */ |
| | | public void addSpecialId(Long uid, String specialId, String taoBaoUid, String nickName, |
| | | boolean valid) throws UserExtraTaoBaoInfoException; |
| | | |
| | | /** |
| | | * 通过UID获取淘宝联盟渠道信息 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public UserExtraTaoBaoInfo getByUid(Long uid); |
| | | |
| | | /** |
| | | * 选择性更新 |
| | | * |
| | | * @param ue |
| | | */ |
| | | public void updateSelective(UserExtraTaoBaoInfo ue); |
| | | |
| | | /** |
| | | * 解绑用户 |
| | | * |
| | | * @param uid |
| | | */ |
| | | public void unBindUid(Long uid); |
| | | |
| | | /** |
| | | * 绑定淘宝后6位 |
| | | * |
| | | * @param taoBaoUid |
| | | * @param orderId |
| | | */ |
| | | public void bindTaoBaoOrderEnd6Num(String taoBaoUid, String orderId); |
| | | |
| | | /** |
| | | * 通过渠道ID查询用户(用户信息不为空) |
| | | * @param relationId |
| | | * @return |
| | | */ |
| | | public UserExtraTaoBaoInfo getByRelationId(String relationId, List<SystemEnum> systemList); |
| | | |
| | | /** |
| | | * 通过会员运营ID查询用户(用户信息不为空) |
| | | * @param specialId |
| | | * @return |
| | | */ |
| | | public UserExtraTaoBaoInfo getBySpecialId(String specialId, List<SystemEnum> systemList); |
| | | |
| | | |
| | | /** |
| | | * 添加会员ID/渠道ID |
| | | * @param uid |
| | | * @param relationId 渠道ID |
| | | * @param specialId 会员ID |
| | | * @param taoBaoUid |
| | | * @param valid |
| | | * @throws UserExtraTaoBaoInfoException |
| | | */ |
| | | public void saveUserTaoBaoInfo(Long uid, String relationId, String specialId, String taoBaoUid, String nickName, |
| | | boolean valid) throws UserExtraTaoBaoInfoException; |
| | | |
| | | |
| | | /** |
| | | * 获取渠道ID |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | /** |
| | | * 获取渠道ID |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public String getRelationIdByUid(Long uid); |
| | | |
| | | |
| | | /** |
| | | *获取会员运营ID |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public String getSpecialIdByUid(Long uid); |
| | | } |