package com.template.services;

import com.baomidou.mybatisplus.extension.service.IService;
import com.template.model.pojo.SysCaptcha;

import java.awt.image.BufferedImage;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author ceshi
 * @since 2024-10-29
 */
public interface SysCaptchaService extends IService<SysCaptcha> {
    /**
     * 获取图片验证码
     */
    BufferedImage getCaptcha(String uuid);

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