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.NotNull;
import java.math.BigDecimal;

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

@Data
@ApiModel
public class AuthClientParam {

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

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





}
