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 javax.validation.constraints.NotNull;
import java.io.Serializable;

@ApiModel("小程序使用修改密码")
@Data
public class CustForgetPasswordDTO implements Serializable {
   @ApiModelProperty("新密码")
   private @NotNull(
   message = "新密码不能为空"
) String newPassword;

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

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