feat(plugin): 评估量表 WASM 编译通过 — 170KB cdylib 组件
- wasm32-unknown-unknown target 编译成功 - 插件通过 API upload/install 注册,无需手动配置
This commit is contained in:
15
crates/erp-points/src/event.rs
Normal file
15
crates/erp-points/src/event.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use crate::state::PointsState;
|
||||
|
||||
pub const POINTS_EARNED: &str = "points.earned";
|
||||
pub const POINTS_EXCHANGED: &str = "points.exchanged";
|
||||
pub const POINTS_EXPIRED: &str = "points.expired";
|
||||
pub const POINTS_BALANCE_CHANGED: &str = "points.balance.changed";
|
||||
|
||||
pub fn register_handlers(_state: PointsState) {
|
||||
// Phase 1: 订阅已有事件(lab_report.uploaded, patient.verified, daily_monitoring.created)
|
||||
// 待 erp-health 发布这些事件后启用消费者
|
||||
}
|
||||
|
||||
pub fn register_handlers_with_state(state: PointsState) {
|
||||
register_handlers(state);
|
||||
}
|
||||
Reference in New Issue
Block a user