删除内容: - 前端: health/(67文件), ai/(2文件), Copilot, MediaPicker, 相关API/Store/Hook - 后端: wechat_handler, wechat_service, wechat_user entity, analytics handler, ai_workflow_seed - 配置: WechatConfig, AppConfig.wechat, AuthState wechat 字段 - 启动: 微信凭据检查块, ensure_ai_workflows() 调用 - 迁移: 新增 m20260613_000170_drop_wechat_users.rs - 脚本: api_test_health_alert.py, api_test_mp.py, mpsync.sh/ps1 - E2E: health-data page, flows/ 目录 保留: erp-core/auth/workflow/message/config/plugin + 基座前端 + 通用组件
27 lines
647 B
Rust
27 lines
647 B
Rust
//! ERP WASM 插件运行时 — 生产级 Host API
|
|
//!
|
|
//! 完整插件管理链路:加载 → 初始化 → 运行 → 停用 → 卸载
|
|
|
|
// bindgen! 生成类型化绑定(包含 Host trait 和 PluginWorld 类型)
|
|
// 生成: erp::plugin::host_api::Host trait, PluginWorld 类型
|
|
wasmtime::component::bindgen!({
|
|
path: "wit/plugin.wit",
|
|
world: "plugin-world",
|
|
});
|
|
|
|
pub mod data_dto;
|
|
pub mod data_service;
|
|
pub mod dto;
|
|
pub mod dynamic_table;
|
|
pub mod engine;
|
|
pub mod entity;
|
|
pub mod error;
|
|
pub mod handler;
|
|
pub mod host;
|
|
pub mod manifest;
|
|
pub mod module;
|
|
pub mod notification;
|
|
pub mod plugin_validator;
|
|
pub mod service;
|
|
pub mod state;
|