docs(结构约束同步): 活动文档路径对齐新目录结构
归类重构(技术约束-016)落地后同步活动文档旧路径: - 数据存储设计.md: 三处对应实现表 12 处 src/component/* → storage/position/market/trades - R-013 / PLAN-012 / 迭代11技术实现方案: SqliteStore/PositionManager 路径更新 - 迭代11程序结构设计: 补后续动作记录(历史档案按追加式原则不改写)
This commit is contained in:
@@ -25,7 +25,7 @@ strategies: z.array(z.object({
|
||||
- addStrategy 返回值默认带 configSchema: [];renameStrategy / updateStrategies 整表更新天然携带;
|
||||
- 兼容:settings 旧数据({id,name})经 schemastery default/union 归一化,无迁移脚本。
|
||||
|
||||
### 1.2 strategy_holdings 新增 values 列 + 读写(src/component/SqliteStore.js)
|
||||
### 1.2 strategy_holdings 新增 values 列 + 读写(src/storage/SqliteStore.js)
|
||||
|
||||
```js
|
||||
// init() 内补列(幂等,沿用 _ensureTradeAttributionColumns 模式;只读连接容忍)
|
||||
@@ -52,7 +52,7 @@ case 'holdings/values-update':
|
||||
```
|
||||
|
||||
```js
|
||||
// PositionManager.updateHoldingValues(holdingId, values):
|
||||
// src/position/PositionManager.js —— updateHoldingValues(holdingId, values):
|
||||
// 1) 定位 holdings 行(须存在且当前持仓 closed_at IS NULL;否则 404)
|
||||
// 2) 服务端校验(按所属策略 configSchema):
|
||||
// number → Number.isFinite(Number(v));enum → enum.includes(v);boolean → typeof v === 'boolean'
|
||||
@@ -86,4 +86,4 @@ case 'holdings/values-update':
|
||||
## 6. 验证
|
||||
|
||||
- build + typecheck 通过;
|
||||
- 老师人工验收(见验收标准)。
|
||||
- 老师人工验收(见验收标准)。
|
||||
Reference in New Issue
Block a user