use mogh_resolver::Resolve;
use serde::{Deserialize, Serialize};
use typeshare::typeshare;
use crate::{api::write::KomodoWriteRequest, entities::NoData};
#[cfg(feature = "utoipa")]
#[utoipa::path(
post,
path = "/CloseAlert",
description = "**Admin only.** Close the Alert at the given id.",
request_body(content = CloseAlert),
responses(
(status = 200, description = "Alert closed", body = NoData),
),
)]
pub fn close_alert() {}
#[typeshare]
#[derive(Debug, Clone, Serialize, Deserialize, Resolve)]
#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
#[empty_traits(KomodoWriteRequest)]
#[response(NoData)]
#[error(mogh_error::Error)]
pub struct CloseAlert {
pub id: String,
}