auth/dto.rs
1use chrono::{DateTime, Utc};
2use serde::{Deserialize, Serialize};
3use utoipa::ToSchema;
4
5#[derive(Debug, Deserialize, ToSchema)]
6pub struct CreateDevSessionRequest {
7 pub user_id: String,
8}
9
10#[derive(Debug, Serialize, ToSchema)]
11pub struct CreateDevSessionResponse {
12 pub user_id: String,
13 pub session_id: String,
14 pub token: String,
15 pub expires_at: DateTime<Utc>,
16}
17
18#[derive(Debug, Serialize, ToSchema)]
19pub struct RevokeSessionResponse {
20 pub revoked: bool,
21}