mirror of
https://github.com/dromara/tianai-captcha.git
synced 2026-05-14 11:25:36 +08:00
1.5.0重构;
修复一大堆已知问题, 优化代码, 增加 application 类, 重构拦截器组件, 添加缓存模块,
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user