Files
hms/crates/erp-points/src/event.rs
iven 147fd886e3 feat(plugin): 评估量表 WASM 编译通过 — 170KB cdylib 组件
- wasm32-unknown-unknown target 编译成功
- 插件通过 API upload/install 注册,无需手动配置
2026-04-28 12:13:52 +08:00

16 lines
559 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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);
}