Add initial services

This commit is contained in:
2022-10-03 23:00:31 +02:00
parent b01b33f7d1
commit 6234cf18e8
22 changed files with 932 additions and 91 deletions

View 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 {}

View File

@@ -1,2 +1,3 @@
pub mod items;
pub mod projects;
pub mod users;

View 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 {}

View 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 {}