package com.mzl.flower.dto.request.register; import com.mzl.flower.dto.request.customer.UpdateCustomerDTO; import com.mzl.flower.dto.request.partner.UpdatePartnerDTO; import lombok.Data; import javax.validation.constraints.NotBlank; import javax.validation.constraints.Pattern; @Data public class RegisterCustomerDTO { @NotBlank(message = "手机号不能为空") @Pattern(regexp = "^1[3-9]\\d{9}$",message = "手机号码格式不正确") private String tel; @NotBlank(message = "密码不能为空") private String password; @NotBlank(message = "验证码不能为空") private String smsCode; @NotBlank(message = "wxcode不能为空") private String wxcode; private String imgurl; private String nickname; private UpdateCustomerDTO dto; }