集成测试 (TestDb + Service 层直接调用): - test_journal_crud_full_lifecycle: 创建/查询/更新/列表/软删除全流程 - test_journal_version_conflict_on_update: 乐观锁版本冲突检测 - test_journal_tenant_isolation: 多租户数据隔离验证 - test_class_create_and_join: 班级创建+学生加入+成员查询+班级码重置 - test_sync_batch_create_and_fetch: 批量创建 3 篇日记同步 - test_sync_version_conflict_detection: 同步版本冲突检测 - test_mood_stats_aggregation: 心情统计 GROUP BY 聚合 - test_parent_binding_two_step_verification: 家长绑定两步验证 - test_achievement_list: 成就查询 修复: - mood_stats_service: journal_entry → journal_entries 表名修正 测试: 518/518 全仓库通过 (含 9 新增集成测试)
56 lines
1.3 KiB
TOML
56 lines
1.3 KiB
TOML
[package]
|
|
name = "erp-server"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
|
|
[features]
|
|
default = ["diary"]
|
|
diary = ["dep:erp-diary"]
|
|
|
|
[[bin]]
|
|
name = "erp-server"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
erp-core.workspace = true
|
|
tokio.workspace = true
|
|
axum.workspace = true
|
|
tower.workspace = true
|
|
tower-http.workspace = true
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
config.workspace = true
|
|
sea-orm.workspace = true
|
|
sqlx.workspace = true
|
|
redis.workspace = true
|
|
utoipa.workspace = true
|
|
serde_json.workspace = true
|
|
serde.workspace = true
|
|
erp-server-migration = { path = "migration" }
|
|
erp-auth.workspace = true
|
|
erp-config.workspace = true
|
|
erp-workflow.workspace = true
|
|
erp-message.workspace = true
|
|
erp-plugin.workspace = true
|
|
erp-diary = { workspace = true, optional = true }
|
|
anyhow.workspace = true
|
|
uuid.workspace = true
|
|
chrono.workspace = true
|
|
moka = { version = "0.12", features = ["sync"] }
|
|
metrics.workspace = true
|
|
metrics-exporter-prometheus.workspace = true
|
|
hmac = "0.12"
|
|
sha2 = "0.10"
|
|
hex = "0.4"
|
|
|
|
[dev-dependencies]
|
|
erp-auth = { workspace = true }
|
|
erp-plugin = { workspace = true }
|
|
erp-workflow = { workspace = true }
|
|
erp-core = { workspace = true }
|
|
erp-diary = { workspace = true }
|
|
async-trait.workspace = true
|
|
futures.workspace = true
|
|
sha2.workspace = true
|
|
hex.workspace = true
|