use serde::Serialize; use crate::context::facade::GitContext; use crate::service::GitService; use crate::share::errors::GitError; #[derive(Debug, Clone, Serialize, utoipa::ToSchema)] pub struct PruneResultDto { pub reachable: i64, pub unreachable: i64, pub total: i64, } #[derive(Debug, Clone, Serialize, utoipa::ToSchema)] pub struct FsckDto { pub ok: bool, pub dangling: i64, pub broken: i64, } impl GitService { pub async fn maintenance_prune(&self, _ctx: &GitContext) -> Result { Err(GitError::Unimplemented( "repository prune is served by KenShell", )) } pub async fn maintenance_fsck(&self, _ctx: &GitContext) -> Result { Err(GitError::Unimplemented( "repository fsck is served by KenShell", )) } }