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 CompanyListVo {
    @ApiModelProperty(value = "企业id")
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private Long id;

    @ApiModelProperty(value = "注册来源")
    private String source;
    @ApiModelProperty(value = "企业类型")
    private String type;
    @ApiModelProperty(value = "企业名称")
    private String companyName;
    @ApiModelProperty(value = "所属行业")
    private String companyTrade;
    @ApiModelProperty(value = "联系人")
    private String linkMan;
    @ApiModelProperty(value = "统一信用代码")
    private String creditCode;
    @ApiModelProperty(value = "证件类型")
    private Integer creditType;
    @ApiModelProperty(value = "法人")
    private String legalPerson;

    @ApiModelProperty(value = "省")
    private String province;
    @ApiModelProperty(value = "省名称")
    private String provinceName;
    @ApiModelProperty(value = "市")
    private String city;
    @ApiModelProperty(value = "市名称")
    private String cityName;
    @ApiModelProperty(value = "区/县")
    private String county;
    @ApiModelProperty(value = "区/县名称")
    private String countyName;
    @ApiModelProperty(value = "镇/街道")
    private String town;
    @ApiModelProperty(value = "镇/街道名称")
    private String townName;
    @ApiModelProperty(value = "注册地址")
    private String address;
    @ApiModelProperty(value = "员工人数")
    private Integer staffs;
    @ApiModelProperty(value = "是否认证")
    private Integer cerStatus;
    @ApiModelProperty(value = "绑定手机")
    private String phone;
    @ApiModelProperty(value = "注册时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date registerTime;
    @ApiModelProperty(value = "证件有效期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date cerEffectiveTime;
    @ApiModelProperty(value = "账号状态")
    private Integer status;
}
