package com.multictrl.modules.business.dto.camera;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.DecimalMax;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 红外测温点设置参数
 *
 * @author Sdy
 * @since 1.0.0 2026/4/28
 */
@Data
@Schema(name = "红外测温点设置参数")
public class IrMeteringPointSet {

    @NotNull(message = "测温点坐标x不能为空")
    @DecimalMax(value = "1", message = "测温点坐标x 范围为0~1")
    @DecimalMin(value = "0", message = "测温点坐标x 范围为0~1")
    @Schema(description = "测温点坐标 x（以镜头的左上角为坐标中心点，水平方向为 x）")
    private Double x;

    @NotNull(message = "测温点坐标y不能为空")
    @DecimalMax(value = "1", message = "测温点坐标y 范围为0~1")
    @DecimalMin(value = "0", message = "测温点坐标y 范围为0~1")
    @Schema(description = "测温点坐标 y（以镜头的左上角为坐标中心点，竖直方向为 y）")
    private Double y;
}
