#[cfg(any(feature = "app-server-types", feature = "authnz-server-types"))]
use impulse_server_kit::salvo;
#[cfg(any(feature = "app-server-types", feature = "authnz-server-types"))]
use salvo::oapi::ToSchema;
use serde::{Deserialize, Serialize};
#[cfg_attr(any(feature = "app-server-types", feature = "authnz-server-types"), derive(ToSchema))]
#[derive(Deserialize, Serialize, PartialEq, Eq, Hash, Clone, Debug)]
pub struct UserLogoutRequest {
pub access_token: String,
pub refresh_token: String,
}
impl UserLogoutRequest {
pub fn new(act: impl ToString, rft: impl ToString) -> Self {
Self {
access_token: act.to_string(),
refresh_token: rft.to_string(),
}
}
}