package com.hotwj.platform.driverManagement.driver.domain.bo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.dromara.common.core.constant.RegexConstants;

import java.io.Serial;
import java.io.Serializable;

/**
 * 驾驶员密码修改对象
 *
 * @author shihongwei
 * @date 2026-05-15
 */
@Data
public class HotDriverPasswordBo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 新密码
     */
    @NotBlank(message = "新密码不能为空")
    @Length(min = 8, max = 20, message = "{user.password.length.valid}")
    @Pattern(regexp = RegexConstants.PASSWORD, message = "{user.password.format.valid}")
    private String newPassword;
}
