package org.sky.scientific.pojo.dto;

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.sky.scientific.pojo.vo.DailyAttendance;

import java.util.List;

@Data
public class AttendanceDto {

	@Schema(description = "研发人员唯一标识")
	@NotNull(message = "unicode不能为空")
	private String unicode;

	@Schema(description = "姓名")
	private String name;

	@Schema(description = "工号")
	private String number;

	@Schema(description = "身份证号码")
	private String idCard;

	@Schema(description = "人员类型")
	private String personnelType;

	@Schema(description = "年月")
	@NotBlank(message = "参数yearAndMonth不能为空")
	private String yearAndMonth;

	@NotEmpty(message = "请填写考勤明细")
	@Schema(description = "考勤明细")
	private List<DailyAttendance> dailyAttendances;

}
