mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
4.0.3
This commit is contained in:
@@ -30,8 +30,8 @@ public class LimitNewAddParam {
|
||||
@NotBlank(message = "serviceId can not null")
|
||||
private String serviceId;
|
||||
|
||||
/** 限流策略,1:漏桶策略,2:令牌桶策略, 数据库字段:limit_type */
|
||||
@ApiDocField(description = "限流策略,1:漏桶策略,2:令牌桶策略")
|
||||
/** 限流策略,1:窗口策略,2:令牌桶策略, 数据库字段:limit_type */
|
||||
@ApiDocField(description = "限流策略,1:窗口策略,2:令牌桶策略")
|
||||
@NotNull(message = "limitType不能为空")
|
||||
private Byte limitType;
|
||||
|
||||
|
@@ -35,8 +35,8 @@ public class LimitNewUpdateParam {
|
||||
@NotBlank(message = "serviceId can not null")
|
||||
private String serviceId;
|
||||
|
||||
/** 限流策略,1:漏桶策略,2:令牌桶策略, 数据库字段:limit_type */
|
||||
@ApiDocField(description = "限流策略,1:漏桶策略,2:令牌桶策略")
|
||||
/** 限流策略,1:窗口策略,2:令牌桶策略, 数据库字段:limit_type */
|
||||
@ApiDocField(description = "限流策略,1:窗口策略,2:令牌桶策略")
|
||||
@NotNull(message = "limitType不能为空")
|
||||
private Byte limitType;
|
||||
|
||||
|
@@ -20,8 +20,8 @@ public class LimitParam {
|
||||
@NotBlank(message = "serviceId can not null")
|
||||
private String serviceId;
|
||||
|
||||
/** 限流策略,1:漏桶策略,2:令牌桶策略, 数据库字段:limit_type */
|
||||
@ApiDocField(description = "限流策略,1:漏桶策略,2:令牌桶策略")
|
||||
/** 限流策略,1:窗口策略,2:令牌桶策略, 数据库字段:limit_type */
|
||||
@ApiDocField(description = "限流策略,1:窗口策略,2:令牌桶策略")
|
||||
@NotNull
|
||||
private Byte limitType;
|
||||
|
||||
|
@@ -41,9 +41,9 @@ public class LimitNewVO {
|
||||
private String serviceId;
|
||||
|
||||
/**
|
||||
* 限流策略,1:漏桶策略,2:令牌桶策略, 数据库字段:limit_type
|
||||
* 限流策略,1:窗口策略,2:令牌桶策略, 数据库字段:limit_type
|
||||
*/
|
||||
@ApiDocField(description = "限流策略,1:漏桶策略,2:令牌桶策略")
|
||||
@ApiDocField(description = "限流策略,1:窗口策略,2:令牌桶策略")
|
||||
private Byte limitType;
|
||||
|
||||
/**
|
||||
|
@@ -32,9 +32,9 @@ public class LimitVO {
|
||||
private String serviceId;
|
||||
|
||||
/**
|
||||
* 限流策略,1:漏桶策略,2:令牌桶策略, 数据库字段:limit_type
|
||||
* 限流策略,1:窗口策略,2:令牌桶策略, 数据库字段:limit_type
|
||||
*/
|
||||
@ApiDocField(description = "限流策略,1:漏桶策略,2:令牌桶策略")
|
||||
@ApiDocField(description = "限流策略,1:窗口策略,2:令牌桶策略")
|
||||
private Byte limitType;
|
||||
|
||||
/**
|
||||
|
@@ -21,7 +21,7 @@ public class ConfigLimitDto {
|
||||
/** 服务id, 数据库字段:service_id */
|
||||
private String serviceId;
|
||||
|
||||
/** 限流策略,1:漏桶策略,2:令牌桶策略, 数据库字段:limit_type */
|
||||
/** 限流策略,1:窗口策略,2:令牌桶策略, 数据库字段:limit_type */
|
||||
private Byte limitType;
|
||||
|
||||
/** 每秒可处理请求数, 数据库字段:exec_count_per_second */
|
||||
|
@@ -6,7 +6,7 @@ package com.gitee.sop.adminserver.common;
|
||||
*/
|
||||
public enum LimitEnum {
|
||||
/**
|
||||
* 限流策略,1:漏桶策略
|
||||
* 限流策略,1:窗口策略
|
||||
*/
|
||||
TYPE_LEAKY_BUCKET((byte) 1),
|
||||
/**
|
||||
|
@@ -37,7 +37,7 @@ public class ConfigLimit {
|
||||
/** 服务id, 数据库字段:service_id */
|
||||
private String serviceId;
|
||||
|
||||
/** 限流策略,1:漏桶策略,2:令牌桶策略, 数据库字段:limit_type */
|
||||
/** 限流策略,1:窗口策略,2:令牌桶策略, 数据库字段:limit_type */
|
||||
private Byte limitType;
|
||||
|
||||
/** 每秒可处理请求数, 数据库字段:exec_count_per_second */
|
||||
|
Reference in New Issue
Block a user