package com.cpop.oam.business.bo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.experimental.Accessors;


/**
 * Description: 修改用户密码bo
 * date: 2023/5/12 16:01
 *
 * @Author ST
 */
@Data
@Accessors(chain = true)
@Schema( description = "修改用户密码bo")
public class ModifyUserPasswordBo {

    /**
     * 用户id
     */
    @NotBlank(message = "用户id不能为空")
    @Schema(description = "用户id",requiredMode = Schema.RequiredMode.REQUIRED)
    private String userId;

    /**
     * 旧密码
     */
    @NotBlank(message = "旧密码不能为空")
    @Schema(description = "旧密码",requiredMode = Schema.RequiredMode.REQUIRED)
    private String oldPassword;

    /**
     * 新密码
     */
    @NotBlank(message = "新密码不能为空")
    @Schema(description = "新密码",requiredMode = Schema.RequiredMode.REQUIRED)
    private String newPassword;
}
