feat: wrap-up REST API endpoints

This commit is contained in:
2026-06-02 22:17:11 +02:00
parent 5e740ba2a1
commit 5a15bea3d4
7 changed files with 209 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ pub mod social;
pub mod users;
pub mod watchlist;
pub mod webhook;
pub mod wrapup;
pub use auth::*;
pub use common::*;

View File

@@ -0,0 +1,30 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Deserialize, utoipa::ToSchema)]
pub struct GenerateWrapUpRequest {
pub start_date: String,
pub end_date: String,
pub global: Option<bool>,
}
#[derive(Debug, Serialize, utoipa::ToSchema)]
pub struct WrapUpGeneratedResponse {
pub id: String,
}
#[derive(Debug, Serialize, utoipa::ToSchema)]
pub struct WrapUpStatusResponse {
pub id: String,
pub user_id: Option<String>,
pub status: String,
pub start_date: String,
pub end_date: String,
pub created_at: String,
pub completed_at: Option<String>,
pub error_message: Option<String>,
}
#[derive(Debug, Serialize, utoipa::ToSchema)]
pub struct WrapUpListResponse {
pub items: Vec<WrapUpStatusResponse>,
}