package org.springblade.attence.record.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.attence.record.entity.Record;

import java.time.LocalDate;
import java.time.LocalTime;
import java.util.List;

@Data
@ApiModel(value = "打卡标记对象", description = "打卡标记对象")
public class MarkDayVo {

	@ApiModelProperty("日期")
	private LocalDate localDate;

	@ApiModelProperty("是否需要打卡")
	private Boolean isInWork;

	@ApiModelProperty("类型,0:正常打卡日期，1：异常打卡日期,2:不需要打卡的日期,默认为0")
	private Integer status;

	@ApiModelProperty("当天上班标准时间")
	@JsonFormat(pattern = "HH:mm")
	private LocalTime workTime;

	@ApiModelProperty("当天下班标准时间")
	@JsonFormat(pattern = "HH:mm")
	private LocalTime offWorkTime;

	@ApiModelProperty("上班打卡记录")
	private Record workRecord;

	@ApiModelProperty("下班打卡记录")
	private Record offWorkRecord;

	@ApiModelProperty("外出打卡记录")
	private List<Record> outWorkRecord;

	@ApiModelProperty("工作时长")
	private String totalWorkTime;

}
