package com.njcn.user.pojo.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Description:
 * Date: 2024/7/11  18:04【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */

@Data
@ApiModel
public class PassWordRuleParam {
    @ApiModelProperty(name = "errorsCount",value = "安码输入错误次数")
    @NotNull(message = "密码输入错误次数不可为空")
    @Range(min = 3,max = 20,message = "密码输入次数配置超范围")
    private Integer errorsCount;

    @ApiModelProperty(name = "releaseTime",value = "自动解锁(分钟):")
    @NotNull(message = "自动解锁(分钟)不可为空")
    @Range(min = 5,max = 60,message = "自动解锁(分钟)超范围")
    private Integer releaseTime;

//    @ApiModelProperty(name = "sessionTime",value = "*会话超时时间(分钟)")
//    @NotNull(message = "会话超时时间(分钟)不可为空")
//    @Range(min = 1,max = 1440000,message = "会话超时时间(分钟)超范围")
//    private Integer sessionTime;
//
//    @ApiModelProperty(name = "sessionRefreshTime",value = "*会话刷新时间(分钟)")
//    @NotNull(message = "会话刷新时间(分钟)不可为空")
//    @Range(min = 1,max = 1440000,message = "会话刷新时间(分钟)超范围")
//    private Integer sessionRefreshTime;

    @ApiModelProperty(name = "passwordExpirationDays",value = "密码有效期")
    @NotNull(message = "密码有效期不可为空")
    @Range(min = 1,max = 180,message = "密码有效期超范围")
    private Integer passwordExpirationMonth;

/*    @ApiModelProperty(name = "mixedCheckFlag",value = "密码符号混合校验(0:否1：是)")
    //@NotNull(message = "密码符号混合校验不可为空")
    private Integer mixedCheckFlag;


    @ApiModelProperty(name = "doubleCheckFlag",value = "密码重复校验(0:否1：是)")
    //@NotNull(message = "密码重复校验不可为空")
    private Integer doubleCheckFlag;

    @ApiModelProperty(name = "mixedCheckFlag",value = "密码大小写混合校验(0:否1：是)" )
    //@NotNull(message = "密码大小写混合校验不可为空")
    private Integer mixedCaseCheckFlag;*/

    @ApiModelProperty(name = "maxUseUser",value = "最大并发用户" )
    @NotNull(message = "最大并发用户不可为空")
    @Range(min = 10,max = 99,message = "最大并发用户超范围")
    private Integer maxUseUser;

    @ApiModelProperty(name = "maxUseUser",value = "验证密码错误次数" )
    @NotNull(message = "验证密码错误次数时间范围不可为空")
    @Range(min = 10,max = 99,message = "最大并发用户超范围")
    private Integer lockPwdCheck;

    @NotNull(message = "账号长时间未登录休眠期(天)不可为空")
    @Range(min = 1,max = 180,message = "账号长时间未登录休眠期(天)超范围")
    private Integer sleepDay;
    @NotNull(message = "用户注销时间(天)不可为空")
    @Range(min = 1,max = 360,message = "用户注销(天)超范围")
    private Integer logoutDay;
    //（类型：0-临时用户 1-正常用户）
    @NotNull(message = "用户类型不可为空")
    private Integer type;

}
