package com.softwarebr.nunu.json.api.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * 企业注册
 * @Author lilin
 * @Date 2020-02-17 14:07:07
 */
@Data
@ApiModel
public class EnterpriseRegisterParam {

    @ApiModelProperty(value = "手机号码", required = true, example = "15220276660")
    @Length(min = 11, max = 11, message = "手机号码输入不正确")
    private String phone;

    @ApiModelProperty(value = "密码", required = true, example = "123456")
    @Length(min = 6, max = 12, message = "请设置密码为6-12个英文字符/数字/英文标点符号")
    private String password;

    @ApiModelProperty(value = "验证码", required = true, example = "6666")
    @Length(min = 4, max = 4, message = "验证码不能为空")
    private String captcha;

    @ApiModelProperty(value = "姓名", required = true, example = "彭于晏")
    @NotEmpty(message = "姓名不能为空")
    private String username;

    @ApiModelProperty(value = "企业名称", required = true, example = "贝如科技")
    @NotEmpty(message = "企业名称不能为空")
    private String companyName;

    @ApiModelProperty(value = "第三方登录类型1.PC微信 2.h5微信", required = true, example = "1")
    Integer type;

    @ApiModelProperty(value = "第三方登录openId", required = true, example = "15664123456")
    String thirdPartyId;

}
