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;
|
|
}
|