| | |
| | | package com.yeshi.fanli.service.inter.user;
|
| | |
|
| | | import java.util.Date;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dto.wx.WXAccountInfoDTO;
|
| | | import com.yeshi.fanli.entity.bus.user.UserInfo;
|
| | | import com.yeshi.fanli.entity.bus.user.UserInfoExtra;
|
| | | import com.yeshi.fanli.entity.bus.user.UserRank;
|
| | | import com.yeshi.fanli.entity.bus.user.WeiXinUser;
|
| | | import com.yeshi.fanli.exception.user.UserInfoExtraException;
|
| | | import com.yeshi.fanli.vo.user.UserInfoExtraVO;
|
| | |
|
| | |
| | | * @param code
|
| | | * @throws UserInfoExtraException
|
| | | */
|
| | | public void activationInviteWX(Long uid, String code) throws UserInfoExtraException;
|
| | | public void activationInviteWX(WXAccountInfoDTO wxAccount,Long uid, String code) throws UserInfoExtraException;
|
| | |
|
| | | /**
|
| | | * 判断是否是新用户
|
| | |
| | | */
|
| | | public void createUserInfoExtra(Long uid) throws UserInfoExtraException;
|
| | |
|
| | | /**
|
| | | * 获取用户等级
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public UserRank gerUserRank(Long uid);
|
| | |
|
| | | /**
|
| | | * 根据邀请码查询用户
|
| | | * @param inviteCode
|
| | | * @return
|
| | | * @throws UserInfoExtraException
|
| | | */
|
| | | public UserInfo getUserByInviteCode(String inviteCode) throws UserInfoExtraException;
|
| | |
|
| | | /**
|
| | | * 获取邀请人关系信息
|
| | | * @param uid
|
| | | * @param code
|
| | | * @return
|
| | | * @throws UserInfoExtraException
|
| | | */
|
| | | public UserInfo getInviterInfo(Long uid, String wxUnionId) throws UserInfoExtraException;
|
| | |
|
| | | /**
|
| | | * 更新信息 + 加锁
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public UserInfoExtra getByUidForUpdate(Long uid);
|
| | | |
| | | /**
|
| | | * 更新用户金币
|
| | | * @param id
|
| | | * @param goldCoin
|
| | | * @return
|
| | | */
|
| | | public void updateGoldCoin(Long id, Integer goldCoin);
|
| | |
|
| | | /**
|
| | | * 新版邀请激活
|
| | | * @param uid
|
| | | * @param weiXinUser
|
| | | * @throws UserInfoExtraException
|
| | | */
|
| | | public void activeInviteWX(Long uid, WeiXinUser weiXinUser) throws UserInfoExtraException;
|
| | |
|
| | | /**
|
| | | * 根据用户id更新信息
|
| | | * @param userInfoExtra
|
| | | */
|
| | | public void updateActiveTime(Long uid, Date date);
|
| | | |
| | | /**
|
| | | *开启自动提现: 更新超过期限的
|
| | | * @param days
|
| | | */
|
| | | public void updateAutoExtract(@Param("days")Integer days);
|
| | |
|
| | | /**
|
| | | * 返回用户所有相关额外信息
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public UserInfoExtra getUserALLInfo(Long uid);
|
| | | |
| | | }
|