001package top.cenze.utils.pojo; 002 003import com.fasterxml.jackson.annotation.JsonInclude; 004import io.swagger.annotations.ApiModel; 005import io.swagger.annotations.ApiModelProperty; 006import lombok.Data; 007 008/** 009 * @desc: 接口鉴权配置 010 * @author: chengze 011 * @createByDate: 2023/12/31 20:29 012 */ 013@ApiModel(value = "接口鉴权配置") 014@Data 015@JsonInclude(JsonInclude.Include.NON_NULL) 016public class ApiAuthConfig { 017 @ApiModelProperty(value = "开放接口uri") 018 private String apiUri; 019 020 @ApiModelProperty(value = "开放接口请求次数(限制时间范围内)") 021 private Integer accessCount; 022 023 @ApiModelProperty(value = "开放接口第一次请求时间戳(限制时间范围内,单位:分钟)") 024 private Integer accessFirstTime; 025 026 @ApiModelProperty(value = "开放接口(0否,1是)") 027 private Integer isOpen; 028 029 @ApiModelProperty(value = "需要鉴权(0否,1是)") 030 private Integer requireAuth; 031 032 @ApiModelProperty(value = "限制访问次数(0~65535),0不限制") 033 private Integer limitCount; 034 035 @ApiModelProperty(value = "限制时间戳范围(0~ 4294967295,单位:分钟),0不限制(多少分钟内限制访问多少次,limit_count或limit_time为0时,不限制)") 036 private Integer limitTime; 037}