You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
790 B
44 lines
790 B
/**
|
|
* Copyright (c) 2018 人人开源 All rights reserved.
|
|
*
|
|
* https://www.renren.io
|
|
*
|
|
* 版权所有,侵权必究!
|
|
*/
|
|
|
|
package com.epmet.service;
|
|
|
|
import java.awt.image.BufferedImage;
|
|
|
|
/**
|
|
* 验证码
|
|
*
|
|
* @author Mark sunlightcs@gmail.com
|
|
* @since 1.0.0
|
|
*/
|
|
public interface CaptchaService {
|
|
|
|
/**
|
|
* 图片验证码
|
|
*/
|
|
BufferedImage create(String uuid);
|
|
|
|
/**
|
|
* @description 基层治理平台登录验证码
|
|
*
|
|
* @param
|
|
* @return
|
|
* @author wxz
|
|
* @date 2021.10.25 14:15:30
|
|
*/
|
|
BufferedImage createIcLoginCaptcha(String uuid);
|
|
|
|
/**
|
|
* 验证码效验
|
|
* @param uuid uuid
|
|
* @param code 验证码
|
|
* @return true:成功 false:失败
|
|
*/
|
|
boolean validate(String uuid, String code);
|
|
|
|
}
|
|
|