init
This commit is contained in:
@@ -7,8 +7,8 @@ use crate::repositories::message::MessageRepository;
|
||||
use crate::repositories::role::RoleRepository;
|
||||
use crate::repositories::server::ServerRepository;
|
||||
use crate::repositories::server_item_order::ServerItemOrderRepository;
|
||||
use crate::repositories::server_tree::ServerTreeRepository;
|
||||
use crate::repositories::user::UserRepository;
|
||||
use event_bus::EventBus;
|
||||
use sea_orm::DatabaseConnection;
|
||||
use std::sync::Arc;
|
||||
|
||||
@@ -19,6 +19,7 @@ mod message;
|
||||
mod role;
|
||||
mod server;
|
||||
mod server_item_order;
|
||||
mod server_tree;
|
||||
pub mod types;
|
||||
mod user;
|
||||
|
||||
@@ -37,6 +38,7 @@ pub struct Repositories {
|
||||
pub user: UserRepository,
|
||||
pub computed_permission: ComputedPermissionRepository,
|
||||
pub server_item_order: ServerItemOrderRepository,
|
||||
pub server_tree: ServerTreeRepository,
|
||||
}
|
||||
|
||||
impl Repositories {
|
||||
@@ -68,6 +70,9 @@ impl Repositories {
|
||||
server_item_order: ServerItemOrderRepository {
|
||||
context: context.clone(),
|
||||
},
|
||||
server_tree: ServerTreeRepository {
|
||||
context: context.clone(),
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user