2025-02-26 15:45:05 +07:00
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
use utoipa::ToSchema;
|
|
|
|
|
|
2025-03-20 22:41:20 +07:00
|
|
|
#[derive(Clone, Debug, Serialize, Deserialize, ToSchema)]
|
|
|
|
|
pub struct UsersCreateRequestDto {
|
|
|
|
|
pub email: String,
|
|
|
|
|
pub fullname: String,
|
|
|
|
|
pub password: String,
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-26 15:45:05 +07:00
|
|
|
#[derive(Clone, Debug, Serialize, Deserialize, ToSchema)]
|
|
|
|
|
pub struct UsersItemDto {
|
2025-03-23 07:56:43 +07:00
|
|
|
pub id: String,
|
2025-02-26 15:45:05 +07:00
|
|
|
pub fullname: String,
|
2025-03-23 07:56:43 +07:00
|
|
|
pub email: String,
|
|
|
|
|
pub avatar: Option<String>,
|
|
|
|
|
pub phone_number: String,
|
|
|
|
|
pub referral_code: Option<String>,
|
|
|
|
|
pub referred_by: Option<String>,
|
|
|
|
|
pub identity_number: Option<String>,
|
2025-03-18 14:13:53 +07:00
|
|
|
pub is_active: bool,
|
2025-03-23 07:56:43 +07:00
|
|
|
pub student_type: String,
|
|
|
|
|
pub religion: Option<String>,
|
|
|
|
|
pub gender: Option<String>,
|
|
|
|
|
pub birthdate: Option<String>,
|
|
|
|
|
pub is_profile_completed: bool,
|
2025-02-26 15:45:05 +07:00
|
|
|
}
|