package com.huimv.employment.service.enterprise.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * 企业首次登记请求体。
 */
public class EnterpriseRegisterRequest {

    @NotBlank(message = "企业名称不能为空")
    @Size(max = 200, message = "企业名称过长")
    private String name;

    @NotBlank(message = "统一社会信用代码不能为空")
    @Pattern(regexp = "^[0-9A-HJ-NPQRTUWXY]{2}\\d{6}[0-9A-HJ-NPQRTUWXY]{10}$",
            message = "统一社会信用代码格式不正确")
    private String creditCode;

    @NotBlank(message = "法人姓名不能为空")
    @Size(max = 64, message = "法人姓名过长")
    private String legalPerson;

    @NotBlank(message = "注册地址不能为空")
    @Size(max = 500, message = "注册地址过长")
    private String registeredAddress;

    @NotBlank(message = "联系人姓名不能为空")
    @Size(max = 64, message = "联系人姓名过长")
    private String contactName;

    @NotBlank(message = "联系人手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "联系人手机号格式不正确")
    private String contactMobile;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCreditCode() {
        return creditCode;
    }

    public void setCreditCode(String creditCode) {
        this.creditCode = creditCode;
    }

    public String getLegalPerson() {
        return legalPerson;
    }

    public void setLegalPerson(String legalPerson) {
        this.legalPerson = legalPerson;
    }

    public String getRegisteredAddress() {
        return registeredAddress;
    }

    public void setRegisteredAddress(String registeredAddress) {
        this.registeredAddress = registeredAddress;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getContactMobile() {
        return contactMobile;
    }

    public void setContactMobile(String contactMobile) {
        this.contactMobile = contactMobile;
    }
}
