- pom: 引 yh-platform-dependencies(import) / yh-api-std / springdoc-openapi-ui 1.7.0 + nexus-public 仓库 - RoutingFilter.isGatewayInternal: /v3/api-docs、/swagger-ui/**、/swagger-ui.html 纳入自身路径旁路,避免被 TargetRouter 当 target 裸 404 - InternalAdminController: page/routes/targets/logs 三接口分页化返回 BasePageResult;补 @Operation(operationId=GatewayAdmin.*);错误契约去 @ResponseStatus(400) 改 200+code=2;logs 兼容旧 limit 入参 - RouteRefreshController: 补 @Tag/@Operation(operationId=GatewayAdmin.refresh) - static/admin.html: 适配 {code,msg,data} 信封与 content/total 分页 - InternalAdminControllerTest: 重写 12 用例,77 项测试全绿
单文件 vanilla JS 零外部依赖:路由表六旋钮下拉/数字输入+行保存(值域即下拉白名单), 目标表 base_url+启停,台账三筛选+status 着色,顶部注册表热重载;错误 toast 不打断。
/api/internal/admin/**(RoutingFilter 旁路前缀,零过滤器改动): - GET page(routes/targets/logs) + PUT routes/{id} / targets/{id} - 值域白名单(visibility/authMode/cacheScope)非法 400 不落库;写后热重载注册表 - OpenApiLogRepository.pageLatest 两可空过滤+倒序分页 - 10 用例(page/列表/合法编辑/三态 400/limit 截断),全量 75/75 绿