All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.holly.unit.security.api.pojo.DragCaptchaImageDTO Maven / Gradle / Ivy

package com.holly.unit.security.api.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 剪裁图片dto传输实体
 *
 * @author holly
 * @date 2021/7/5 14:10
 */
@Data
@AllArgsConstructor
public class DragCaptchaImageDTO {

    /**
     * 本次验证码缓存的key
     */
    private String key;

    /**
     * 剪裁后的源图片(base64编码)
     */
    private String srcImage;

    /**
     * 剪裁的小拼图图片(base64编码)
     */
    private String cutImage;

    /**
     * x轴坐标
     */
    private Integer locationX;

    /**
     * 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;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy