admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
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);
 
}