[SEN] 恢复登录页匿名只读 app-config 接口 #99
Closed
opened 2026-08-16 19:38:33 +08:00 by ila
·
3 comments
No Branch/Tag Specified
dev
feat/183-bell-contact-schedule
docs/171-coordination-e2e-wiki
feature/155-coordination-e2e
docs/168-sync-coordination-wiki
feature/154-coordination-deployment
docs/152-153-connectors
feature/153-event-evidence-connector
feature/152-brain-control
docs/151-machine-identity-acceptance
task/151-machine-identity
docs/150-contract-acceptance
docs/148-149-contract-acceptance
feature/149-runtime-status-contract
feature/150-event-evidence-contract
feature/148-source-config-contract
docs/8-mvp-acceptance
feature/145-sense-e2e-isolation-cleanup
feature/134-bell-independent-e2e
feature/142-bell-ui-shell-startup
feature/140-bell-minimal-admin-menu
feature/138-bell-production-captcha
feature/133-bell-alert-lifecycle
feature/132-bell-rule-alert
feature/131-bell-event-receipt
feature/16-brain-local-events
feature/15-brain-rules
feature/14-brain-vision
feature/13-brain-decode
feature/11-brain-input
main
feat/sense-79-ops-alerts
feat/sense-78-outbox
feat/77-sense-media-shards
feat/76-sense-edge-node-status
feat/75-sense-quota-capacity
feature/74-sense-operations
feature/73-sense-local-events
feature/72-sense-bulk-provisioning
feature/113-record-parallel-acceptance
feature/113-sync-parallel-implementation-docs
feature/71-sense-e2e-regression
feature/62-bell-goadmin-skeleton
feature/10-brain-python-cuda-skeleton
feature/108-sync-devharness
feature/90-sense-root-launcher
feature/106-supervisor-sense
fix/101-sense-layout-shell
feature/104-sense-login-30-days
docs/99-acceptance
feature/99-sense-app-config
feature/70-sense-windows-delivery
fix/95-sense-media-path-constraint
feature/97-sense-password-login
docs/92-acceptance
fix/92-sense-capabilities-jsonb
docs/69-acceptance
feature/69-sense-area
feature/68-sense-liveview
feature/67-sense-mediamtx-reconcile
feature/66-sense-onvif-admission
feature/65-sense-device-credential
feature/64-sense-auth-rbac-audit
feature/61-sense-goadmin-source-baseline
docs/acceptance-batch-20260814
coordination/58-finalize-branch-governance
explore
agent/codex/56-sense-device-edit-payload
agent/codex/54-sense-liveview-on-demand
agent/codex/51-sense-auto-liveview
agent/codex/50-sense-split-camera-credentials
agent/codex/48-sense-onvif-digest
agent/codex/46-sense-env-loader
agent/codex/44-sense-empty-navigation
agent/codex/42-sense-password-length-only
agent/codex/40-sense-password-min-6
agent/codex/37-sense-windows-package
agent/codex/36-bell-docs
agent/codex/9-bell-mvp
agent/codex/21-sense-mvp
agent/codex/28-current-prototypes
agent/codex/5-goadmin-baseline
agent/codex/3-go-admin-ui-reuse
agent/codex/1-collaboration-rules
No results found.
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ila/yovision#99
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
状态
已完成
基本信息
dev)原始需求与追溯
Request failed with status code 404,并明确确认“建工单并做”。GET /api/v1/app-config返回 404;首页、runtime JS 和 captcha 兼容端点均返回 200。go-admin-ui 登录页在 created 阶段调用system/settingDetail → getSetting → /api/v1/app-config,全局 Axios 拦截器把 404 显示为错误提示。SysConfig.Get2SysApp,但精简默认模块时registerBaseRouter未注册该匿名路由;前端调用链仍保留。目标
恢复 go-admin-ui 登录页依赖的匿名只读
GET /api/v1/app-config,消除启动后 404 提示,同时继续禁用无关的系统配置管理、配置写入和其他默认模块接口。做什么
GET /api/v1/app-config,复用SysConfig.Get2SysApp。set-config的完整配置路由注册函数。不做什么
/api/v1/config、/api/v1/configKey或/api/v1/set-config。GoAdmin 复用与精简门禁
SysConfig.Get2SysApp和现有 Gin 路由,不新增配置服务或 HTTP 框架。写路径
Sense/server/app/admin/router/sys_router.goSense/server/app/admin/router/*_test.goSense/server/app/admin/apis/*_test.godocs/**镜像wiki-docs.json与docs/task/**禁止写入:
Brain/**、Bell/**、contracts/**、根级部署配置。发现需要扩大接口或权限范围时先更新工单。文档影响
更新 Sense 架构/API 边界:
app-config是登录外壳所需的匿名只读接口;系统配置管理和写接口仍禁用。长期文档按 Wiki → 读取确认 → 同步镜像处理。验收标准
GET /api/v1/app-config返回 HTTP 200 和标准响应结构/api/v1/config、/api/v1/configKey、/api/v1/set-config未被本工单启用验证方式
git diff --check、Wiki 镜像一致性检查风险与回退
协同需求摘要
无跨项目协同需求。
实施结果与证据(2026-08-16)
feature/99-sense-app-config;PR:#100(目标dev,保持打开待验收)。713c9e4e3003088e29aafcf1fdd3bd87078ec394;长期文档:08b4b61;归档镜像:d067f0b。5cbaa178193811083519c5125febf8cc962c94ee;任务归档 revision26d3762828f6e4273a2002fca49336bebf7566fe。GET /api/v1/app-config复用SysConfig.Get2SysApp;配置 CRUD、configKey、set-config 未注册。A98EB70B709BBA546F4968723E4F89CE44DAF412FCC426869820FB7454CB3CC7;包内 source commit 为713c9e4e3003088e29aafcf1fdd3bd87078ec394。Sense/ui/node_modules已清理,工作区干净。人工验收与合并
dev,合并提交34ee5ed619d122a8670dc50039578686a7a9ef66。7d0dd9b216e443b00a97f021d49678b848006db9。3c668cc。开始实施。分支
feature/99-sense-app-config从dev@863b232a73767c0e8b6eb5a6bde606f882d2f72a创建,初始工作区干净。已读取冻结 go-admin-doc:
docs/intro/advanced/router.md:匿名端点不挂 JWT/Casbin 中间件;路由注册保持register{业务}Router结构。docs/intro/advanced/config.md:继续使用既有系统配置模型/服务,不新增另一套配置事实源。app/admin/router/sys_config.go与 go-admin-uisrc/api/login.js:上游登录外壳依赖匿名/api/v1/app-config;本任务只恢复该单一路由,不恢复完整配置 CRUD、configKey 或 set-config 路由。代码图 MCP 本轮未提供可调用工具,按仓库规则回退到字符串检索和定点读取。
#99 已完成实现并进入待验收。
A98EB70B709BBA546F4968723E4F89CE44DAF412FCC426869820FB7454CB3CC7工单与 PR 保持 open,等待用户验收。
验收归档补充:受保护
dev不允许直接推送,完成状态镜像经 PR #103 合入;归档实现提交3c668cc,归档合并提交4b135b852b55f7c04d1e266765c93b840a8342f6。