支持自定义注解实现接口限流

This commit is contained in:
RuoYi
2021-08-17 14:08:18 +08:00
parent 03cf98d3c9
commit 5c155f5f11
8 changed files with 225 additions and 15 deletions

View File

@ -0,0 +1,20 @@
package com.ruoyi.common.enums;
/**
* 限流类型
*
* @author ruoyi
*/
public enum LimitType
{
/**
* 默认策略全局限流
*/
DEFAULT,
/**
* 根据请求者IP进行限流
*/
IP
}