package com.bonus.core.customer.dto;

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

@ApiModel("小程序使用修改密码")
@Data
public class CustChangePasswordDTO implements Serializable {
   @ApiModelProperty("人员id")
   private @NotNull(
   message = "人员id不能为空"
) Long custId;

   @ApiModelProperty("旧密码")
   private @NotNull(
   message = "旧密码不能为空"
) String oldPassword;

   @ApiModelProperty("新密码")
   private @NotNull(
   message = "新密码不能为空"
) String newPassword;

   @ApiModelProperty("openid")
   private String openid;

   @ApiModelProperty("源类型 1-钉钉 2-微信 3-小程序")
   private Integer sourceType;
}
