package com.zhongshu.card.client.model.attendance;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.stereotype.Indexed;

import java.util.List;

@Data
public class ApplyLeaveParam {

    @Schema(description = "项目oid")
    private String projectId;

    @Schema(description = "场景id")
    @NotNull(message = "场景id不能为null")
    @NotEmpty(message = "场景id不能为空")
    private String sceneId;

    //请假类型
    @Schema(description = "请假类型")
    @NotNull(message = "请假类型不能为null")
    @NotEmpty(message = "请假类型不能为空")
    private String leaveType;

    @Schema(description = "开始时间")
    @NotNull(message = "开始时间不能为null")
    @NotEmpty(message = "开始时间不能为空")
    private Long startTime;

    @Schema(description = "结束时间")
    @NotNull(message = "结束时间不能为null")
    @NotEmpty(message = "结束时间不能为空")
    private Long endTime;

    @Schema(description = "请假原因")
    private String leaveReason;

    @Schema(description = "图片")
    private List<String> pic;

    //审批人
    @Schema(description = "审批人")
    @NotNull(message = "审批人不能为null")
    @NotEmpty(message = "审批人不能为空")
    private String approvalUser;


}
