Added user dtos
This commit is contained in:
parent
58d8516764
commit
cda54f0005
|
@ -1,2 +1,3 @@
|
|||
pub mod shared;
|
||||
pub mod sample;
|
||||
pub mod user;
|
|
@ -0,0 +1 @@
|
|||
pub mod user_dtos;
|
|
@ -0,0 +1,21 @@
|
|||
use serde::{Serialize, Deserialize};
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
pub struct UserForCreationDto{
|
||||
pub app: String,
|
||||
pub email: String,
|
||||
pub password: String,
|
||||
pub name: String
|
||||
}
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
pub struct UserForLoginDto{
|
||||
pub app: String,
|
||||
pub email: String,
|
||||
pub password: String
|
||||
}
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
pub struct UserForAuthenticationDto{
|
||||
pub app: String,
|
||||
pub email: String,
|
||||
pub token: String
|
||||
}
|
Loading…
Reference in New Issue