package com.yuchen.saas.manage.user.api.vo.sasscompany;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 宋少挺
 */
@Data
@ApiModel(value = "企业员工列表", description = "企业员工列表")
public class CompanyUserListVo {
    @ApiModelProperty(value = "企业员工登记id")
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private Long id;
    @ApiModelProperty(value = "企业员工id")
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private Long companyId;
    @ApiModelProperty(value = "员工用户id")
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private Long userId;
    @ApiModelProperty(value = "企业名称")
    private String companyName;
    @ApiModelProperty(value = "所在部门")
    private String deptName;
    @ApiModelProperty(value = "岗位名称")
    private String stationName;
    @ApiModelProperty(value = "岗位级别")
    private String stationLevel;
    @ApiModelProperty(value = "姓名")
    private String name;
    @ApiModelProperty(value = "性别")
    private Integer sex;
    @ApiModelProperty(value = "年龄")
    private Integer age;
    @ApiModelProperty(value = "照片")
    private String pic;
    @ApiModelProperty(value = "身份证号")
    private String idcard;
    @ApiModelProperty(value = "联系方式")
    private String contactPhone;
    @ApiModelProperty(value = "联系地址")
    private String contactAddress;
    @ApiModelProperty(value = "登记时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date registerTime;
}
