package com.ruoyi.wgz.bo.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("务工者APP注册账号对象")
public class WgzAppRegisterReq implements Serializable {
	@ApiModelProperty("联系电话")
	@Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号码格式不正确")
	private String phone;

	/** 密码 */
	@ApiModelProperty("密码")
	@NotBlank(message = "密码不能为空")
	private String password;
}
