Add initial services
This commit is contained in:
8
como_core/src/items/mod.rs
Normal file
8
como_core/src/items/mod.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use async_trait::async_trait;
|
||||
|
||||
pub type DynItemService = Arc<dyn ItemService + Send + Sync>;
|
||||
|
||||
#[async_trait]
|
||||
pub trait ItemService {}
|
@@ -1,2 +1,3 @@
|
||||
|
||||
|
||||
pub mod items;
|
||||
pub mod projects;
|
||||
pub mod users;
|
||||
|
8
como_core/src/projects/mod.rs
Normal file
8
como_core/src/projects/mod.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use async_trait::async_trait;
|
||||
|
||||
pub type DynProjectService = Arc<dyn ProjectService + Send + Sync>;
|
||||
|
||||
#[async_trait]
|
||||
pub trait ProjectService {}
|
8
como_core/src/users/mod.rs
Normal file
8
como_core/src/users/mod.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use async_trait::async_trait;
|
||||
|
||||
pub type DynUserService = Arc<dyn UserService + Send + Sync>;
|
||||
|
||||
#[async_trait]
|
||||
pub trait UserService {}
|
Reference in New Issue
Block a user