use serde::{Deserialize, Serialize};
use session::Session;
use utoipa::ToSchema;
use crate::{AppService, error::AppError};
#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
pub struct ReadmeDto {
pub content: String,
pub html: String,
}
impl AppService {
pub async fn git_repo_readme(
&self,
ctx: &Session,
wk_name: &str,
repo_name: &str,
) -> Result