yujian
2019-03-12 4a05f1c9c508ab7f10c5eae22a5c716f5454ca02
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
package com.yeshi.fanli.service.inter.user;
 
import java.util.List;
 
import com.yeshi.fanli.entity.bus.user.ForbiddenUserIdentifyCode;
import com.yeshi.fanli.entity.bus.user.ForbiddenUserIdentifyCode.ForbiddenUserIdentifyCodeTypeEnum;
import com.yeshi.fanli.exception.user.ForbiddenUserIdentifyCodeException;
import com.yeshi.fanli.vo.user.ForbiddenUserIdentifyCodeVO;
 
public interface ForbiddenUserIdentifyCodeService {
 
    /**
     * 添加禁止标识
     * 
     * @param identifyCode
     * @throws ForbiddenUserIdentifyCodeException
     */
    public void addIdentifyCode(ForbiddenUserIdentifyCode identifyCode) throws ForbiddenUserIdentifyCodeException;
 
    /**
     * 通过类型与唯一标识获取列表
     * 
     * @param type
     * @param identifyCode
     * @return
     */
    public ForbiddenUserIdentifyCode listByTypeAndIdentifyCode(ForbiddenUserIdentifyCodeTypeEnum type,
            String identifyCode);
 
    /**
     * 
     * @param identifyCode
     */
    public void update(ForbiddenUserIdentifyCode identifyCode);
 
    /**
     * 
     * @param identifyCode
     */
    public void delete(ForbiddenUserIdentifyCode identifyCode);
 
    /**
     * 查询已封禁的号码   用户信息
     * @param start
     * @param count
     * @param key
     * @param type
     * @return
     */
    public List<ForbiddenUserIdentifyCodeVO> listQuery(long start, int count, String key, Integer type);
 
    public long countQuery(String key, Integer type);
 
    /**
     * 对账号封禁、解封操作
     * @param identifyCode 号码
     * @param type  类型   
     * @param state  状态: true 封
     * @throws ForbiddenUserIdentifyCodeException
     */
    public void saveForbiddenInfo(String identifyCode, Integer type, boolean state) throws ForbiddenUserIdentifyCodeException;
 
}