27 lines
547 B
Rust
27 lines
547 B
Rust
//! 自由职业者工作台 WASM 插件
|
|
|
|
wit_bindgen::generate!({
|
|
path: "../erp-plugin-prototype/wit/plugin.wit",
|
|
world: "plugin-world",
|
|
});
|
|
|
|
use crate::exports::erp::plugin::plugin_api::Guest;
|
|
|
|
struct FreelancePlugin;
|
|
|
|
impl Guest for FreelancePlugin {
|
|
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!(FreelancePlugin);
|