guohongjin
2024-05-15 5b7639f0bd9e056738ec15100ed0532e965c6cd5
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
package cn.stylefeng.roses.kernel.security.api.pojo;
 
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.AllArgsConstructor;
import lombok.Data;
 
/**
 * 剪裁图片dto传输实体
 *
 * @author fengshuonan
 * @date 2021/7/5 14:10
 */
@Data
@AllArgsConstructor
public class DragCaptchaImageDTO {
 
    /**
     * 本次验证码缓存的key
     */
    @ChineseDescription("本次验证码缓存的key")
    private String key;
 
    /**
     * 剪裁后的源图片(base64编码)
     */
    @ChineseDescription("剪裁后的源图片(base64编码)")
    private String srcImage;
 
    /**
     * 剪裁的小拼图图片(base64编码)
     */
    @ChineseDescription("剪裁的小拼图图片(base64编码)")
    private String cutImage;
 
    /**
     * x轴坐标
     */
    @ChineseDescription("x轴坐标")
    private Integer locationX;
 
    /**
     * y轴坐标
     */
    @ChineseDescription("y轴坐标")
    private Integer locationY;
 
    public DragCaptchaImageDTO(String srcImage, String cutImage, int locationX, int locationY) {
        this.srcImage = srcImage;
        this.cutImage = cutImage;
        this.locationX = locationX;
        this.locationY = locationY;
    }
 
}