yujian
2019-03-14 8a23fdc23fc1b5edda31743de005a108fa1b7543
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
package com.yeshi.fanli.service.inter.user;
 
import com.yeshi.fanli.entity.bus.user.ForbiddenUserIdentifyCode;
import com.yeshi.fanli.entity.bus.user.ForbiddenUserIdentifyCode.ForbiddenUserIdentifyCodeTypeEnum;
import com.yeshi.fanli.exception.user.ForbiddenUserIdentifyCodeException;
 
public interface ForbiddenUserIdentifyCodeService {
 
    /**
     * 封禁账号
     * 
     * @param identifyCode
     * @throws ForbiddenUserIdentifyCodeException
     */
    public void forbiddenIdentifyCode(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 identifyCode 号码
     * @param type  类型   
     * @param state  状态: true 封
     * @throws ForbiddenUserIdentifyCodeException
     */
    public void saveForbiddenInfo(String identifyCode, Integer type) throws ForbiddenUserIdentifyCodeException;
 
}