feat: wrap-up REST API endpoints
This commit is contained in:
@@ -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::*;
|
||||
|
||||
30
crates/api-types/src/wrapup.rs
Normal file
30
crates/api-types/src/wrapup.rs
Normal 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>,
|
||||
}
|
||||
Reference in New Issue
Block a user