
package org.sky.scientific.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import org.sky.core.tool.utils.DateUtil;
import org.sky.scientific.pojo.entity.TechnicianEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.util.Date;

/**
 * 技术人员花名册 数据传输对象实体类
 *
 * @author sky
 * @since 2025-06-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class TechnicianDTO extends TechnicianEntity {
	@Serial
	private static final long serialVersionUID = 1L;

	@Schema(description = "入职时间-开始")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
	@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
	private Date hireStartDate;

	@Schema(description = "入职时间-结束")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
	@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
	private Date hireEndDate;

}
