pub mod tenant;
pub mod tenant_product_assign_info;
use crate::core::config::Config;
pub struct V2 {
pub tenant: tenant::TenantService,
pub tenant_product_assign_info: tenant_product_assign_info::TenantProductAssignInfoService,
}
impl V2 {
pub fn new(config: Config) -> Self {
Self {
tenant: tenant::TenantService::new(config.clone()),
tenant_product_assign_info:
tenant_product_assign_info::TenantProductAssignInfoService::new(config),
}
}
pub fn new_from_shared(shared: std::sync::Arc<Config>) -> Self {
Self {
tenant: tenant::TenantService::new_from_shared(shared.clone()),
tenant_product_assign_info:
tenant_product_assign_info::TenantProductAssignInfoService::new_from_shared(shared),
}
}
}