package com.ytpm.auth;



import com.ytpm.oauth.model.CaptchaValid;

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

public interface CaptchaService {

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

    /**
     * 验证验证码
     *
     * @param captchaValid
     * @return
     */
    void valid(CaptchaValid captchaValid);
}
