1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use df_plugin::plugin_create;

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(env!("CARGO_MANIFEST_DIR"), "user", "用户系统", "account", "账户", "quasar", "查询");
}