package com.ssm.manage.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 临时工入职的添加或更新数据传输对象
 */
@Data
@NoArgsConstructor
public class StaffTemporaryEntrantDto {
    private Long id;

//    private String token;

    @ApiModelProperty(name = "ruzhiTime", value = "入职时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date ruzhiTime;

    @ApiModelProperty(name = "type", value = "0日结/1月结")
    private Integer type;

    /**
     * 身份证
     */
    @ApiModelProperty(name = "identityCard", value = "身份证")
    private String identityCard;
}
