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

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.beans.BeanUtils;

/**
 * 宋少挺
 */
@Data
@ApiModel(value = "小程序添加企业实体类", description = "小程序添加企业实体类")
public class AddCompanyVo {

    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private Long id;

    @ApiModelProperty(value = "当前小程序用户的手机号码")
    private String wechatUserPhone;

    @ApiModelProperty(value = "用户电话")
    private String companyName;
    @ApiModelProperty(value = "所属行业")
    private String companyTrade;
    @ApiModelProperty(value = "企业规模")
    private String companyScope;
    @ApiModelProperty(value = "联系人")
    private String linkMan;
    @ApiModelProperty(value = "联系方式")
    private String phone;
    @ApiModelProperty(value = "邮箱地址")
    private String email;
    @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 source=1;

    public CompanyVo toCompany(){
        CompanyVo company=new CompanyVo();
        BeanUtils.copyProperties(this,company);
        return company;
    }
}
