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

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.yuchen.saas.manage.user.api.entity.SaasUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "园区人员信息列表", description = "园区人员信息列表")
public class PeopleDetailListVo {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("人员id")
    private Long id;
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("园区id")
    private Long parkId;
    @ApiModelProperty("园区名称")
    private String parkName;
    @ApiModelProperty("人员类型")
    private Long peopleType;
    @ApiModelProperty("人员类型名称")
    private String peopleTypeName;
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("企业")
    private Long company;
    @ApiModelProperty("企业")
    private String companyName;
    @ApiModelProperty("照片")
    private String imgsrc;
    @ApiModelProperty("姓名")
    private String name;
    @ApiModelProperty("身份证号码")
    private String idCard;
    @ApiModelProperty("联系方式")
    private String phone;
    @ApiModelProperty("人员组织code")
    private String orgIndexCode;
    @ApiModelProperty("登记时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty("登记车辆数")
    private Integer cars;
    @ApiModelProperty("登记车辆")
    private List<String> plateNos;
}
