ruwebframe 0.1.4

a simple webframe for rust actix-web, based on rudi and rbatis.
Documentation
// pkg rubase::rutils::dateutils

/*
	@Title   文件名称: daterange_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::rubase::rutils::DateRange;
use crate::rudi::dicontainer::direg; 

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

const SINGLE_BEAN_NAME: &str = "*rubase::rutils::dateutils:DateRange:fc28d35e-d721-410b-b6a6-2ed906477810:single}";

pub fn find_bean_daterange() -> Option<Arc<DateRange>> {
    direg::get_bean::<DateRange>(SINGLE_BEAN_NAME)
}

pub fn register_bean_daterange() {
    direg::register_singleton(SINGLE_BEAN_NAME, DateRange::default);
}


// StructInfo
/*
 {
  "pathFile": "./src\\rubase\\rutils\\dateutils.rs",
  "pathPkg": "./src\\rubase\\rutils",
  "structName": "DateRange",
  "structPkg": "rubase::rutils::dateutils",
  "ifSingle": true,
  "ifDefault": true,
  "structIniFile": "daterange_init.rs",
  "existIniFile": true,
  "single_bean_name": "*:DateRange:e3e62619-6245-47b3-9847-251617176399:single",
  "modFile": "./src\\rubase\\rutils/mod.rs",
  "ifExistsInitMod": false,
  "ifExistsInitUse": false
}
*/