admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
fanli/src/main/java/com/yeshi/fanli/service/impl/user/MaskKeyServiceImpl.java
@@ -1,27 +1,27 @@
package com.yeshi.fanli.service.impl.user;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.yeshi.fanli.dao.mybatis.user.MaskKeyMapper;
import com.yeshi.fanli.service.inter.user.MaskKeyService;
@Service
public class MaskKeyServiceImpl implements MaskKeyService {
   @Resource
   private MaskKeyMapper maskKeyMapper;
   @Override
   public boolean examineContent(String content) {
      boolean isValid = true;
      int count = maskKeyMapper.examineContent(content);
      if (count > 0) {
         isValid = false;
      }
      return isValid;
   }
}
package com.yeshi.fanli.service.impl.user;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.yeshi.fanli.dao.mybatis.user.MaskKeyMapper;
import com.yeshi.fanli.service.inter.user.MaskKeyService;
@Service
public class MaskKeyServiceImpl implements MaskKeyService {
   @Resource
   private MaskKeyMapper maskKeyMapper;
   @Override
   public boolean examineContent(String content) {
      boolean isValid = false;
      int count = maskKeyMapper.examineContent(content);
      if (count > 0) {
         isValid = true;
      }
      return isValid;
   }
}