From cc668ae44df856e5d15a396e0f9835edec5bb9f9 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Mon, 4 May 2026 13:38:14 +0200 Subject: [PATCH] feat(dtos): add LoginForm, RegisterForm, ErrorQuery --- crates/presentation/src/dtos.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/crates/presentation/src/dtos.rs b/crates/presentation/src/dtos.rs index a6f2730..d9faba7 100644 --- a/crates/presentation/src/dtos.rs +++ b/crates/presentation/src/dtos.rs @@ -20,6 +20,23 @@ pub struct LogReviewForm { pub watched_at: String, } +#[derive(Deserialize)] +pub struct LoginForm { + pub email: String, + pub password: String, +} + +#[derive(Deserialize)] +pub struct RegisterForm { + pub email: String, + pub password: String, +} + +#[derive(Deserialize)] +pub struct ErrorQuery { + pub error: Option, +} + #[derive(Deserialize)] pub struct LogReviewRequest { pub external_metadata_id: Option,