feat(dialysis): 激活 erp-dialysis 独立模块 — 注册到 erp-server
- workspace Cargo.toml 添加 erp-dialysis 依赖声明 - erp-server 注册 DialysisModule 并挂载透析路由 - 修复权限码:health.health-data.* → health.dialysis.list/manage - 集成测试迁移:erp_health → erp_dialysis import + DialysisState - TestApp 新增 dialysis_state() 方法 - cargo check 通过,erp-dialysis 10 个单元测试全部通过
This commit is contained in:
@@ -6,6 +6,7 @@ use erp_health::dto::doctor_dto::CreateDoctorReq;
|
||||
use erp_health::dto::patient_dto::CreatePatientReq;
|
||||
use erp_health::service::{appointment_service, doctor_service, patient_service};
|
||||
use erp_health::state::HealthState;
|
||||
use erp_dialysis::state::DialysisState;
|
||||
|
||||
use super::test_db::TestDb;
|
||||
|
||||
@@ -41,6 +42,14 @@ impl TestApp {
|
||||
&self.health_state
|
||||
}
|
||||
|
||||
pub fn dialysis_state(&self) -> DialysisState {
|
||||
DialysisState {
|
||||
db: self.test_db.db().clone(),
|
||||
event_bus: self.health_state.event_bus.clone(),
|
||||
crypto: self.health_state.crypto.clone(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn tenant_id(&self) -> uuid::Uuid {
|
||||
self.tenant_id
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user