parent
80cc48b3b1
commit
06dbb21796
@ -1,54 +0,0 @@ |
||||
package com.gitee.sop.gateway.entity; |
||||
|
||||
import lombok.Data; |
||||
|
||||
import javax.persistence.Column; |
||||
import javax.persistence.GeneratedValue; |
||||
import javax.persistence.GenerationType; |
||||
import javax.persistence.Id; |
||||
import javax.persistence.Table; |
||||
import java.util.Date; |
||||
|
||||
|
||||
/** |
||||
* 表名:config_route_limit |
||||
* 备注:路由限流配置 |
||||
* |
||||
* @author tanghc |
||||
*/ |
||||
@Table(name = "config_route_limit") |
||||
@Data |
||||
public class ConfigRouteLimit { |
||||
@Id |
||||
@Column(name = "id") |
||||
@GeneratedValue(strategy = GenerationType.IDENTITY) |
||||
/** 数据库字段:id */ |
||||
private Integer id; |
||||
|
||||
/** 路由id, 数据库字段:route_id */ |
||||
private String routeId; |
||||
|
||||
/** 限流策略,1:窗口策略,2:令牌桶策略, 数据库字段:limit_type */ |
||||
private Byte limitType; |
||||
|
||||
/** 每秒可处理请求数, 数据库字段:exec_count_per_second */ |
||||
private Integer execCountPerSecond; |
||||
|
||||
/** 返回的错误码, 数据库字段:limit_code */ |
||||
private String limitCode; |
||||
|
||||
/** 返回的错误信息, 数据库字段:limit_msg */ |
||||
private String limitMsg; |
||||
|
||||
/** 令牌桶容量, 数据库字段:token_bucket_count */ |
||||
private Integer tokenBucketCount; |
||||
|
||||
/** 1:开启,0关闭, 数据库字段:limit_status */ |
||||
private Byte limitStatus; |
||||
|
||||
/** 数据库字段:gmt_create */ |
||||
private Date gmtCreate; |
||||
|
||||
/** 数据库字段:gmt_modified */ |
||||
private Date gmtModified; |
||||
} |
@ -1,11 +0,0 @@ |
||||
package com.gitee.sop.gateway.mapper; |
||||
|
||||
import com.gitee.fastmybatis.core.mapper.CrudMapper; |
||||
import com.gitee.sop.gateway.entity.ConfigRouteLimit; |
||||
|
||||
|
||||
/** |
||||
* @author tanghc |
||||
*/ |
||||
public interface ConfigRouteLimitMapper extends CrudMapper<ConfigRouteLimit, Integer> { |
||||
} |
Loading…
Reference in new issue