ruwebframe 0.1.6

a simple webframe for rust actix-web, based on rudi and rbatis.
Documentation
// pkg rudomain::rudb::dbentity::dbexample::dbexample

/*
	@Title   文件名称: person_init.rs
	@Desp    描述:    依赖自动注入
    @Company 公司:    wcht.akunlong.top
	@Author  作者:    raymond@163.com  时间: 2026-08-14 14:01:00
	@Update  作者:    raymond@163.com  时间: 2026-08-14 14:01:00
*/

// StructInit自动生成,一般不要手动修改

use std::sync::Arc;
use ctor::ctor;

use crate::rudi::dicontainer::direg;
use crate::rudomain::rudb::dbentity::dbexample::person::Person;

#[ctor(unsafe)]
pub fn init() {
    register_bean_person();
}

const SINGLE_BEAN_NAME: &str = "*rudomain::rudb::dbentity::dbexample::dbexample:Person:3fd92ddf-7c96-41ca-a11d-644a20f0c154}";

pub fn find_bean_person() -> Option<Arc<Person>> {
    direg::get_bean::<Person>(SINGLE_BEAN_NAME)
}

pub fn register_bean_person() {
    direg::register(SINGLE_BEAN_NAME, Person::default);
}


// StructInfo
/*
 {
  "pathFile": "./src\\rudomain\\rudb\\dbentity\\dbexample\\person",
  "pathPkg": "./src\\rudomain\\rudb\\dbentity\\dbexample",
  "structName": "Person",
  "structPkg": "rudomain::rudb::dbentity::dbexample::dbexample",
  "ifSingle": false,
  "ifDefault": true,
  "structIniFile": "person_init.rs",
  "existIniFile": true,
  "single_bean_name": "*:Person:cc6824cd-36a7-427b-a4cb-3a803fbb0d38",
  "modFile": "./src\\rudomain\\rudb\\dbentity\\dbexample/mod.rs",
  "ifExistsInitMod": false,
  "ifExistsInitUse": false
}
*/