2.1
yujian
2020-03-17 d0f12da013131cd291cec6e81a12d661c02c4bf4
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
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);
 
    /**
     * 验证是否满足会员条件
     * @param uid
     * @return
     */
    public boolean verifyConform(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 workerId
     * @param bossId
     */
    public void inviteSeparate(Long workerId, Long bossId);
 
    /**
     * 超级会员申请通过
     * @param uid
     * @throws UserVIPInfoException
     */
    public void passVIPApplyNew(Long uid) throws UserVIPInfoException;
 
    /**
     * 超级会员未通过
     * @param uid
     * @param reason
     * @throws UserVIPInfoException
     */
    public void rejectVIPApplyNew(Long uid, String reason) throws UserVIPInfoException;
 
    /**
     *  超级会员申请
     * @param uid
     * @throws UserVIPInfoException
     */
    public void applyVIPNew(Long uid) throws UserVIPInfoException;
 
}