Going somewhere... but no idea where.
This commit is contained in:
1 parent
0bbe716d8d
commit
89597dcac2
7 files changed
+110
-10
No files matched your search
@@ -1 +1,19 @@
|
||||
use rusqlite::Connection;
|
||||
|
||||
use crate::services::_users::UserService;
|
||||
|
||||
mod _transactions;
|
||||
mod _users;
|
||||
|
||||
pub struct ServiceFactory<'a> {
|
||||
conn: &'a Connection,
|
||||
}
|
||||
|
||||
impl ServiceFactory<'_> {
|
||||
pub fn new(conn: &Connection) -> ServiceFactory {
|
||||
ServiceFactory { conn }
|
||||
}
|
||||
pub fn get_user_service(&self) -> UserService {
|
||||
UserService::new(self.conn)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user