1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-21 08:55:16 +00:00

Can login user

This commit is contained in:
2020-05-24 16:35:54 +02:00
parent 6f6cd550ea
commit f0cf3202f4
9 changed files with 153 additions and 11 deletions

View File

@ -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;

View File

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