ruwebframe 0.1.8

a simple webframe for rust actix-web, based on rudi and rbatis.
Documentation
pub mod ctl;

use cargo_metadata::cargo_platform::Ident;
pub use ctl::*;
pub mod route_container;

pub use route_container::*;
pub mod route_factroy;

pub use route_factroy::*;
fn ident_to_string(ident: &Ident) -> String {
    webdto::reg_route("", "", "", "");
    ident.to_string()
}
 

pub mod route_container_init;
use crate::ruweb::webdto;
pub use route_container_init::*;

#[macro_export]
macro_rules! reg_route {
    ($name:ident, $path:expr,$method:ident, $handler:expr) => {
        fn $name(cfg: &mut web::ServiceConfig) {
            cfg.route($path, web::$method().to($handler));
        } 
        webrouter::register_route($name, $path);
        webdto::reg_route( 
            stringify!($name),    // → 路由函数名
            $path,                // → 路由路径
            stringify!($method),  // → HTTP 方法
            stringify!($handler), // → 处理函数名
        );
    };
}
  mod route_container_test;