目录重组:后端按core/domains分领域存放(仅移动与更新引用)
- 50个后端模块用git mv移入core/与domains/<领域>/,入口server.js、launch.js、restore.js及server/原位不动 - 所有require路径由脚本按新旧位置统一换算(后端、server/、测试) - 新增test/app-paths.test.js,锁定默认数据目录、public目录与飞书配置文件的绝对位置 - 维护与部署.md补充目录说明并更新模块路径 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
95c481c74a
commit
9ec37196d4
172 files changed
+458
-384
No files matched your search
@@ -2,11 +2,11 @@
|
||||
const { test } = require('node:test'),
|
||||
assert = require('node:assert/strict'),
|
||||
{ randomUUID } = require('node:crypto');
|
||||
const { Ledger, today, day, money, weight, text, fail, ACCOUNTS, ACTIVE_POCKETS } = require('../ledger'),
|
||||
const { Ledger, today, day, money, weight, text, fail, ACCOUNTS, ACTIVE_POCKETS } = require('../core/ledger'),
|
||||
{ createUser } = require('../server'),
|
||||
Rolling = require('../rolling-material-pools'),
|
||||
PriceLocks = require('../price-locks'),
|
||||
RM = require('../recovery-material');
|
||||
Rolling = require('../domains/materials/rolling-material-pools'),
|
||||
PriceLocks = require('../domains/price-locks/price-locks'),
|
||||
RM = require('../domains/recoveries/recovery-material');
|
||||
const D = today(),
|
||||
P = new Date(Date.parse(D + 'T12:00:00Z') - 86400000).toISOString().slice(0, 10);
|
||||
function fixture(t) {
|
||||
@@ -474,7 +474,7 @@ test('改交付单为手填调用既有释放接口后,个人和公共预留
|
||||
delete line.materialAllocations;
|
||||
line.costMaterial = { mode: 'total' };
|
||||
f.l.run('UPDATE orders SET lines=? WHERE id=?', JSON.stringify(order.lines), id);
|
||||
require('../price-lock-pools').releaseForOrderEdit(f.l, lock.id, f.actors.owner, f.env(D), {
|
||||
require('../domains/price-locks/price-lock-pools').releaseForOrderEdit(f.l, lock.id, f.actors.owner, f.env(D), {
|
||||
skipJournalOrder: id,
|
||||
});
|
||||
return { id };
|
||||
|
||||
Reference in new issue
Block a user