feat: 新增网关限流
All checks were successful
构建并部署前端到测试环境 / deploy (push) Successful in 56s

This commit is contained in:
luo
2026-10-24 16:22:28 +08:00
parent ecce4f6e7b
commit 049f8257fb
32 changed files with 3569 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ import { BULK_PURCHASE_PERMISSIONS } from '@/config/constants/bulkPurchase'
import { JULY_PERMISSIONS } from '@/config/constants/julyIteration'
import { AUDIT_PERMISSIONS } from '@/config/constants/audit'
import { AUGUST_PERMISSIONS } from '@/config/constants/augustIteration'
import { GATEWAY_PERMISSIONS } from '@/config/constants/gateway'
import { PAYMENT_MERCHANT_POOL_PERMISSIONS } from '@/config/constants/paymentMerchantPools'
import {
EXPORT_TASK_DETAIL_PAGE_PERMISSION,
@@ -1347,6 +1348,57 @@ export const asyncRoutes: AppRouteRecord[] = [
keepAlive: true,
permissions: [AUGUST_PERMISSIONS.pollingPriorityQueue.page]
}
},
{
path: 'stop-resume-records',
name: 'GatewayStopResumeRecords',
component: RoutesAlias.GatewayStopResumeRecords,
meta: {
title: '停复机记录',
keepAlive: true,
permissions: [GATEWAY_PERMISSIONS.records.page]
}
},
{
path: 'error-classifications',
name: 'GatewayErrorClassifications',
component: RoutesAlias.GatewayErrorClassifications,
meta: {
title: '上游错误分类',
keepAlive: true,
permissions: [GATEWAY_PERMISSIONS.rules.page]
}
},
{
path: 'rate-limit-groups',
name: 'GatewayRateLimitGroups',
component: RoutesAlias.GatewayRateLimitGroups,
meta: {
title: '网关限流组',
keepAlive: true,
permissions: [GATEWAY_PERMISSIONS.groups.page]
}
},
{
path: 'gateway-stats',
name: 'GatewayCallStats',
component: RoutesAlias.GatewayCallStats,
meta: {
title: '网关调用统计',
keepAlive: true,
permissions: [GATEWAY_PERMISSIONS.stats.page]
}
},
{
path: 'rate-limit-groups/detail/:id',
name: 'GatewayRateLimitGroupDetail',
component: RoutesAlias.GatewayRateLimitGroupDetail,
meta: {
title: '网关限流组详情',
isHide: true,
keepAlive: false,
permissions: [GATEWAY_PERMISSIONS.groups.detailPage]
}
}
]
},

View File

@@ -144,6 +144,11 @@ export enum RoutesAlias {
ManualTrigger = '/polling-management/manual-trigger', // 手动触发
PollingMonitor = '/polling-management/monitor', // 轮询监控
PollingPriorityQueue = '/polling-management/priority-queue', // 优先队列
GatewayStopResumeRecords = '/polling-management/stop-resume-records',
GatewayErrorClassifications = '/polling-management/error-classifications',
GatewayRateLimitGroups = '/polling-management/rate-limit-groups',
GatewayRateLimitGroupDetail = '/polling-management/rate-limit-groups/detail',
GatewayCallStats = '/polling-management/gateway-stats',
// 公共组件
Success = '/result/success', // 成功