2026-04-02 16:03:39 +07:00
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
use utoipa::ToSchema;
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Deserialize, ToSchema)]
|
|
|
|
|
pub struct UpdateProfileRequest {
|
2026-04-02 22:29:08 +07:00
|
|
|
pub name: Option<String>,
|
|
|
|
|
pub email: Option<String>,
|
2026-04-02 16:03:39 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Deserialize, ToSchema)]
|
|
|
|
|
pub struct UpdateRoleRequest {
|
2026-04-02 22:29:08 +07:00
|
|
|
pub role: String,
|
2026-04-02 16:03:39 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Serialize, ToSchema)]
|
|
|
|
|
pub struct UserResponse {
|
2026-04-02 22:29:08 +07:00
|
|
|
pub id: String,
|
|
|
|
|
pub email: String,
|
|
|
|
|
pub name: String,
|
|
|
|
|
pub role: String,
|
|
|
|
|
pub provider: String,
|
2026-04-02 16:03:39 +07:00
|
|
|
}
|