package jnpf.model.attendance.dto;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 出勤变更无需审批dto
 *
 * @author yanwenfu
 * @create 2024-01-03
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class NoApprovalDto {

    /** 打卡结果id */
    @NotEmpty(message = "打卡结果不能为空")
    private String clockInResultId;

    /** 变更类型(-1: 缺卡, 1: 正常, 2: 迟到, 3: 早退, 99: 撤回变更) */
    @NotNull(message = "变更类型不能为空")
    private Integer changeType;

    /** 变更分钟数 */
    @Min(value = 0, message = "分钟数变更区间为0-60")
    @Max(value = 60, message = "分钟数变更区间为0-60")
    private Integer changeMinute;
}
