mirror of
https://github.com/dromara/tianai-captcha.git
synced 2026-05-07 14:13:05 +08:00
2cfb72349d
修复一大堆已知问题, 优化代码, 增加 application 类, 重构拦截器组件, 添加缓存模块,
25 lines
531 B
Java
25 lines
531 B
Java
package cloud.tianai.captcha.application.vo;
|
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.Data;
|
|
import lombok.NoArgsConstructor;
|
|
|
|
import java.io.Serializable;
|
|
|
|
/**
|
|
* @Author: 天爱有情
|
|
* @Date 2020/5/29 8:31
|
|
* @Description 验证码返回对象
|
|
*/
|
|
@Data
|
|
@NoArgsConstructor
|
|
@AllArgsConstructor
|
|
public class CaptchaResponse<T> implements Serializable {
|
|
private String id;
|
|
private T captcha;
|
|
|
|
public static <T> CaptchaResponse<T> of(String id, T data) {
|
|
return new CaptchaResponse<T>(id, data);
|
|
}
|
|
}
|