liurunyu
2024-09-13 229741972d5998de57d0d246f73c5e7ff0d42530
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package com.dy.pipIrrApp.captcha.dto;
 
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
 
import java.awt.image.BufferedImage;
import java.io.Serializable;
 
/**
 * @author ZhuBaoMin
 * @date 2024-09-11 13:46
 * @LastEditTime 2024-09-11 13:46
 * @Description
 */
 
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CaptchaDomain implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 验证码的Token
     */
    private String token;
 
    /**
     * 验证码的字符。返回的JSON,禁止返回给前端。
     */
    @JsonIgnore
    private String text;
 
    /**
     * 验证码的验证字符。比如算式的结果等。
     */
    @JsonIgnore
    private String code;
 
    /**
     * 验证码缓冲图像
     */
    @JsonIgnore
    private BufferedImage image;
 
    /**
     * 验证码图片的Base64字符串
     */
    private String base64;
 
    public String getToken() {
        return token;
    }
 
    public void setToken(String token) {
        this.token = token;
    }
 
    public String getText() {
        return text;
    }
 
    public void setText(String text) {
        this.text = text;
    }
 
    public String getCode() {
        return code;
    }
 
    public void setCode(String code) {
        this.code = code;
    }
 
    public BufferedImage getImage() {
        return image;
    }
 
    public void setImage(BufferedImage image) {
        this.image = image;
    }
 
    public String getBase64() {
        return base64;
    }
 
    public void setBase64(String base64) {
        this.base64 = base64;
    }
 
    @Override
    public String toString() {
        return "CaptchaDomain{" +
                "token='" + token + '\'' +
                ", text='" + text + '\'' +
                ", code='" + code + '\'' +
                ", image=" + image +
                ", base64='" + base64 + '\'' +
                '}';
    }
}