admin
2024-01-23 81da61b828e29b7745e1382dfbbaeb685dc083ef
fanli/src/main/java/com/yeshi/fanli/service/inter/user/ForbiddenUserIdentifyCodeService.java
@@ -1,48 +1,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;
}
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;
}