refactor: ♻️ project structure
This commit is contained in:
parent
a8fe214308
commit
085f8baee0
4 changed files with 16 additions and 8 deletions
|
@ -1,3 +1,7 @@
|
|||
pub mod interaction;
|
||||
pub mod post;
|
||||
pub mod user;
|
||||
|
||||
use std::{sync::LazyLock, time::Duration};
|
||||
|
||||
use surrealdb::{
|
||||
|
@ -36,11 +40,3 @@ pub async fn is_alive() -> bool {
|
|||
_ = sleep(Duration::from_secs(1)) => false
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn create_post() {}
|
||||
|
||||
pub async fn read_post() {}
|
||||
|
||||
pub async fn update_post() {}
|
||||
|
||||
pub async fn delete_post() {}
|
||||
|
|
4
src/database/interaction.rs
Normal file
4
src/database/interaction.rs
Normal file
|
@ -0,0 +1,4 @@
|
|||
async fn create_interaction() {}
|
||||
async fn read_interaction() {}
|
||||
async fn update_interaction() {}
|
||||
async fn delete_interaction() {}
|
4
src/database/post.rs
Normal file
4
src/database/post.rs
Normal file
|
@ -0,0 +1,4 @@
|
|||
async fn create_post() {}
|
||||
async fn read_post() {}
|
||||
async fn update_post() {}
|
||||
async fn delete_post() {}
|
4
src/database/user.rs
Normal file
4
src/database/user.rs
Normal file
|
@ -0,0 +1,4 @@
|
|||
async fn create_user() {}
|
||||
async fn read_user() {}
|
||||
async fn update_user() {}
|
||||
async fn delete_user() {}
|
Loading…
Add table
Add a link
Reference in a new issue