feat(itops): 创建 IT 运维服务台插件 — 4 实体/8 权限/4 页面

This commit is contained in:
iven
2026-04-20 00:09:24 +08:00
parent fc76793d6d
commit 59339c2929
4 changed files with 562 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
//! IT 运维服务台 WASM 插件
wit_bindgen::generate!({
path: "../erp-plugin-prototype/wit/plugin.wit",
world: "plugin-world",
});
use crate::exports::erp::plugin::plugin_api::Guest;
struct ItopsPlugin;
impl Guest for ItopsPlugin {
fn init() -> Result<(), String> {
Ok(())
}
fn on_tenant_created(_tenant_id: String) -> Result<(), String> {
Ok(())
}
fn handle_event(_event_type: String, _payload: Vec<u8>) -> Result<(), String> {
Ok(())
}
}
export!(ItopsPlugin);