remove bff
This commit is contained in:
12
como_domain/Cargo.toml
Normal file
12
como_domain/Cargo.toml
Normal file
@@ -0,0 +1,12 @@
|
||||
[package]
|
||||
name = "como_domain"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.60"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0.68"
|
||||
uuid = { version = "1.1.2", features = ["v4", "fast-rng"] }
|
1
como_domain/src/lib.rs
Normal file
1
como_domain/src/lib.rs
Normal file
@@ -0,0 +1 @@
|
||||
pub mod users;
|
0
como_domain/src/projects/mod.rs
Normal file
0
como_domain/src/projects/mod.rs
Normal file
12
como_domain/src/users/mod.rs
Normal file
12
como_domain/src/users/mod.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
pub mod requests;
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
use uuid::Uuid;
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
pub struct UserDto {
|
||||
#[serde(skip_serializing, skip_deserializing)]
|
||||
pub id: Uuid,
|
||||
pub username: String,
|
||||
pub email: String,
|
||||
}
|
8
como_domain/src/users/requests.rs
Normal file
8
como_domain/src/users/requests.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct CreateUserDto {
|
||||
pub username: String,
|
||||
pub email: String,
|
||||
pub password: String,
|
||||
}
|
0
como_domain/src/users/responses.rs
Normal file
0
como_domain/src/users/responses.rs
Normal file
Reference in New Issue
Block a user