mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-21 08:55:16 +00:00
Can login user
This commit is contained in:
@ -4,4 +4,5 @@ pub mod config;
|
||||
pub mod http_request_handler;
|
||||
pub mod api_client;
|
||||
|
||||
pub mod user;
|
||||
pub mod user;
|
||||
pub mod user_token;
|
@ -1,9 +1,12 @@
|
||||
/// User information
|
||||
///
|
||||
/// @author Pierre Hubert
|
||||
///! User information
|
||||
///!
|
||||
///! @author Pierre Hubert
|
||||
|
||||
pub type UserID = i64;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct User {
|
||||
pub id: i64,
|
||||
pub id: UserID,
|
||||
pub email: String,
|
||||
pub password: String,
|
||||
pub first_name: String,
|
||||
|
11
src/data/user_token.rs
Normal file
11
src/data/user_token.rs
Normal file
@ -0,0 +1,11 @@
|
||||
use crate::data::user::UserID;
|
||||
|
||||
/// User access token information
|
||||
///
|
||||
/// Author : Pierre Hubert
|
||||
#[derive(Debug)]
|
||||
pub struct UserAccessToken {
|
||||
pub user_id: UserID,
|
||||
pub client_id: u32,
|
||||
pub token: String
|
||||
}
|
Reference in New Issue
Block a user