Function df_plugin::plugin_create

source ·
pub fn plugin_create(
    plugin: &str,
    model: &str,
    model_title: &str,
    action: &str,
    action_title: &str
)
Expand description

创建 插件

Examples found in repository?
examples/db.rs (line 15)
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fn main() {
    // let root_path = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
    // // 生成数据库文件
    // let sql_path = root_path.join("model");
    // let sql_path = sql_path.to_str().unwrap();

    // let test = plugins("test").model("testmodel").create_json_file(sql_path);
    // println!("{}", test);

    // let (code, data, msg) = plugins("test").model("testmodel").action("testaction").run(object! {});
    // println!("{} {} {}", code, data, msg);

    plugin_create("user", "account", "账户", "quasar", "查询");
}