| | |
| | | package com.yeshi.fanli.service.inter.user.vip;
|
| | |
|
| | | import java.util.List;
|
| | | import java.util.Map;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.vip.UserVIPInfo;
|
| | | import com.yeshi.fanli.exception.user.vip.UserVIPInfoException;
|
| | |
|
| | | /**
|
| | | * VIP用户服务
|
| | | * |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | public interface UserVIPInfoService {
|
| | |
|
| | | /**
|
| | | * 添加用户VIP信息
|
| | | * |
| | | * @param info
|
| | | * @throws UserVIPInfoException
|
| | | */
|
| | | public void addUserVIPInfo(UserVIPInfo info) throws UserVIPInfoException;
|
| | |
|
| | | /**
|
| | | * 申请VIP
|
| | | * |
| | | * @param uid
|
| | | * @throws UserVIPInfoException
|
| | | */
|
| | | public void applyVIP(Long uid) throws UserVIPInfoException;
|
| | |
|
| | | /**
|
| | | * 通过vip申请
|
| | | * |
| | | * @param uid
|
| | | */
|
| | | public void passVIPApply(Long uid) throws UserVIPInfoException;
|
| | |
|
| | | /**
|
| | | * 拒绝申请
|
| | | * |
| | | * @param uid
|
| | | * @param reason
|
| | | */
|
| | | public void rejectVIPApply(Long uid, String reason) throws UserVIPInfoException;
|
| | |
|
| | | /**
|
| | | * 是否为VIP
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public boolean isVIP(Long uid);
|
| | |
|
| | | /**
|
| | | * 根据UID检索
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public UserVIPInfo selectByUid(Long uid);
|
| | |
|
| | | /**
|
| | | * 批量查询是否为VIP
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public Map<Long,Boolean> listByUids(List<Long> uid);
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.user.vip; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.vip.UserVIPInfo; |
| | | import com.yeshi.fanli.exception.user.vip.UserVIPInfoException; |
| | | |
| | | /** |
| | | * VIP用户服务 |
| | | * |
| | | * @author Administrator |
| | | * |
| | | */ |
| | | public interface UserVIPInfoService { |
| | | |
| | | /** |
| | | * 添加用户VIP信息 |
| | | * |
| | | * @param info |
| | | * @throws UserVIPInfoException |
| | | */ |
| | | public void addUserVIPInfo(UserVIPInfo info) throws UserVIPInfoException; |
| | | |
| | | /** |
| | | * 是否为VIP |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public boolean isVIP(Long uid); |
| | | |
| | | /** |
| | | * 在某个时间是否为VIP |
| | | * @Title: isVIP |
| | | * @Description: |
| | | * @param uid |
| | | * @param time |
| | | * @return |
| | | * boolean 返回类型 |
| | | * @throws |
| | | */ |
| | | public boolean isVIP(Long uid, Long time); |
| | | |
| | | /** |
| | | * 根据UID检索 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public UserVIPInfo selectByUid(Long uid); |
| | | |
| | | /** |
| | | * 批量查询是否为VIP |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public Map<Long, Boolean> listByUids(List<Long> uid); |
| | | |
| | | /** |
| | | * 待审核列表 |
| | | * @param page |
| | | * @param count |
| | | * @param key |
| | | * @return |
| | | */ |
| | | public List<UserVIPInfo> listQuery(int page, int count, String key, Integer state); |
| | | |
| | | public long countQuery(String key, Integer state); |
| | | |
| | | /** |
| | | * 超级会员申请通过 |
| | | * @param uid |
| | | * @throws UserVIPInfoException |
| | | */ |
| | | public void passVIPApply(Long uid) throws UserVIPInfoException; |
| | | |
| | | /** |
| | | * 超级会员未通过 |
| | | * @param uid |
| | | * @param reason |
| | | * @throws UserVIPInfoException |
| | | */ |
| | | public void rejectVIPApply(Long uid, String reason) throws UserVIPInfoException; |
| | | |
| | | /** |
| | | * 超级会员申请 |
| | | * @param uid |
| | | * @throws UserVIPInfoException |
| | | */ |
| | | public void applyVIP(Long uid) throws UserVIPInfoException; |
| | | |
| | | /** |
| | | * 根据主键删除 |
| | | * @Title: deleteByPrimaryKey |
| | | * @Description: |
| | | * @param id |
| | | * void 返回类型 |
| | | * @throws |
| | | */ |
| | | public void deleteByPrimaryKey(Long id); |
| | | |
| | | } |