聊天:访问频率限制

This commit is contained in:
luying
2022-01-10 14:30:09 +08:00
parent 00c50ebe98
commit ac51a2302e
4 changed files with 47 additions and 17 deletions

View File

@@ -2,11 +2,21 @@
import { readFileAndParse } from '../util'
import { FILENAME } from '../../consts'
interface ProtectApi {
// id
readonly id: number;
// 描述
readonly desc: string;
// 接口
readonly route: string;
// 参数
readonly param: any;
// 频率 毫秒
readonly interval: number;
}
export interface DicServerConst {
// 保护接口,间隔时间
readonly PROTECT_API_INTERVAL: number;
// 保护的接口
readonly PROTECT_API: string[];
readonly PROTECT_API: ProtectApi[];
// 某些api功能关闭
readonly API_IS_CLOSE: number;
// 关闭的接口