Skip to content
Clone

feat(export): add project favorites export

zhenyi committed
parent c8685d5 commit 8197ccd Browse files

1 file changed

+24 −0

Added lib/export/project/favorites.rs View lib/export/project/favorites.rs
@@ -0,0 +1,24 @@
1use serde::{Deserialize, Serialize};
2use time::OffsetDateTime;
3use utoipa::ToSchema;
4use uuid::Uuid;
5
6#[derive(Debug, Clone, Deserialize, ToSchema)]
7pub struct AddFavoriteCmd {
8 pub folder: Option<String>,
9}
10
11#[derive(Debug, Clone, Serialize, ToSchema)]
12pub struct FavoriteView {
13 pub id: Uuid,
14 pub project_id: Uuid,
15 pub user_id: Uuid,
16 pub folder: Option<String>,
17 pub created_at: OffsetDateTime,
18}
19
20#[derive(Debug, Clone, Serialize, ToSchema)]
21pub struct FavoritePage {
22 pub total: u64,
23 pub items: Vec<FavoriteView>,
24}
No newline at end of file