TN2025 · 基坑工程 · Sprint1(Cloudflare Pages + Functions + D1)
同域 API:
/api/*
(无需 CORS)。
1) 健康检查
/api/healthz
2) 新建项目
创建
3) 监测点导入(CSV 文本)
code,type,x,y,z,unit,threshold1,threshold2,threshold3 P1,settlement,0,0,0,mm,5,10,20
导入点位
4) 读数导入(CSV 文本)
pointCode,t,v P1,2025-10-01T08:00:00Z,2.3 P1,2025-10-02T08:00:00Z,3.1
导入读数
5) 预警查询 + 曲线
查询预警
读取时间序列
6) 施工日志(AI 草稿 + 保存)
生成 AI 草稿
保存日志