瀏覽代碼

feat: 新增CaptchaService实现类的方法

pull/1/head
weihongyang 2 年之前
父節點
當前提交
204d758fcc
共有 1 個檔案被更改,包括 16 行新增0 行删除
  1. +16
    -0
      ym-admin/src/main/java/com/cnbm/admin/service/CaptchaService.java

+ 16
- 0
ym-admin/src/main/java/com/cnbm/admin/service/CaptchaService.java 查看文件

@@ -1,9 +1,25 @@
package com.cnbm.admin.service; package com.cnbm.admin.service;


import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/** /**
* @Author weihongyang * @Author weihongyang
* @Date 2022/6/8 8:55 AM * @Date 2022/6/8 8:55 AM
* @Version 1.0 * @Version 1.0
*/ */
public interface CaptchaService { public interface CaptchaService {

/**
* 图片验证码
*/
void create(HttpServletResponse response, String uuid) throws IOException;

/**
* 验证码效验
* @param uuid uuid
* @param code 验证码
* @return true:成功 false:失败
*/
boolean validate(String uuid, String code);
} }

Loading…
取消
儲存