package com.bonus.canteen.core.customer.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@ApiModel("小程序绑定新手机号")
@Data
public class CustBindMobileDTO implements Serializable {
   @ApiModelProperty("oldMobile")
   private @NotBlank(
           message = "手机号不能为空"
   ) String oldMobile;

   @ApiModelProperty("newMobile")
   private @NotBlank(
   message = "手机号不能为空"
) String newMobile;

   @ApiModelProperty("验证码")
   private String code;
}
