ValidateCodeService.java 520 B

1234567891011121314151617181920212223
  1. package com.ruoyi.gateway.service;
  2. import java.io.IOException;
  3. import com.ruoyi.common.core.exception.CaptchaException;
  4. import com.ruoyi.common.core.web.domain.AjaxResult;
  5. /**
  6. * 验证码处理
  7. *
  8. * @author ruoyi
  9. */
  10. public interface ValidateCodeService
  11. {
  12. /**
  13. * 生成验证码
  14. */
  15. public AjaxResult createCaptcha() throws IOException, CaptchaException;
  16. /**
  17. * 校验验证码
  18. */
  19. public void checkCaptcha(String key, String value) throws CaptchaException;
  20. }