refactor(repo): remove compare types (inlined)
zhenyi committed
Deleted lib/repo/features/compare/types.rs lib/repo/features/compare/types.rs +0 −21
@@ -1,21 +0,0 @@
1use serde::{Deserialize, Serialize};
2use utoipa::ToSchema;
3
4#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
5pub struct CompareView {
6 pub base: String,
7 pub head: String,
8 pub merge_base: Option<String>,
9 pub total_commits: i64,
10 pub ahead_by: i64,
11 pub behind_by: i64,
12 pub files: Vec<CompareFileDiff>,
13}
14
15#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
16pub struct CompareFileDiff {
17 pub path: String,
18 pub additions: i64,
19 pub deletions: i64,
20 pub status: String,
21}