fix: 补齐 GET/POST /txys/iot/stations 站点接口 #45

Closed
opened 2026-10-26 17:17:42 +08:00 by Lijianping · 1 comment
Collaborator

目标

物联页调用 /txys/iot/stations 不再报 No static resource;可列表与保存 RTU 站点。目标仓:backend

范围

  • IotController 增加 stations 端点
  • IotStationService / TxysStation / TxysStationMapper
  • TxysDevice 站点归属字段
  • db/txys-patch/txys_station_sqlserver.sql

不做

  • 不改 frontend、app、txys-*
  • 不把其它本地 WIP(BI/巡检/application-txys 等)塞进本 PR
  • 不改监控 RTU 详情接口(另卡)

验收

  • GET /txys/iot/stations 登录后返回站点列表(非静态资源错误)
  • POST /txys/iot/stations 可新建/更新站点
  • 已执行或可执行 txys_station_sqlserver.sql 建表种子
  • 工作区 docs/API与错误码.md 已登记该接口

相关文档

  • 工作区 docs/API与错误码.md
## 目标 物联页调用 `/txys/iot/stations` 不再报 No static resource;可列表与保存 RTU 站点。目标仓:backend ## 范围 - `IotController` 增加 stations 端点 - `IotStationService` / `TxysStation` / `TxysStationMapper` - `TxysDevice` 站点归属字段 - `db/txys-patch/txys_station_sqlserver.sql` ## 不做 - 不改 frontend、app、txys-* - 不把其它本地 WIP(BI/巡检/application-txys 等)塞进本 PR - 不改监控 RTU 详情接口(另卡) ## 验收 - [ ] GET `/txys/iot/stations` 登录后返回站点列表(非静态资源错误) - [ ] POST `/txys/iot/stations` 可新建/更新站点 - [ ] 已执行或可执行 `txys_station_sqlserver.sql` 建表种子 - [ ] 工作区 `docs/API与错误码.md` 已登记该接口 ## 相关文档 - 工作区 `docs/API与错误码.md`
Author
Collaborator

???,??????

??:?? PR #46 ???? main?
??:???(???PR)

???,?????? ??:?? PR #46 ???? main? ??:???(???PR)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jiaoce/xm_txys2_back#45
No description provided.