use serde::{Deserialize, Serialize}; use crate::service::GitService; use crate::share::errors::GitError; #[derive(Debug, Clone, Serialize, Deserialize, utoipa::ToSchema)] pub struct VerifyResultDto { pub signed: bool, pub valid: bool, pub key_id: Option, pub signer: Option, pub error_message: Option, } impl GitService { pub async fn signature_verify_commit( &self, _space_name: String, _repo_name: String, _sha: String, ) -> Result { Err(GitError::Unimplemented( "commit signature verification requires a KenShell SignatureService", )) } pub async fn signature_verify_tag( &self, _space_name: String, _repo_name: String, _name: String, ) -> Result { Err(GitError::Unimplemented( "tag signature verification requires a KenShell SignatureService", )) } }