df-plugin 0.1.0

This is an Plugin
Documentation
use std::path::PathBuf;
use json::object;
use df_plugin::plugins;

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);
}