feat(project): add project GraphQL query handler
zhenyi committed
Added lib/project/handler/query.rs lib/project/handler/query.rs +43 −0 View lib/project/handler/query.rs
@@ -0,0 +1,43 @@
1use serde::Deserialize;
2use uuid::Uuid;
3
4#[derive(Debug, Clone, Deserialize)]
5pub struct ProjectPath {
6 pub space_id: Uuid,
7 pub project_id: Uuid,
8}
9
10#[derive(Debug, Clone, Deserialize)]
11pub struct MemberPath {
12 pub space_id: Uuid,
13 pub project_id: Uuid,
14 pub user_id: Uuid,
15}
16
17#[derive(Debug, Clone, Deserialize)]
18pub struct ViewPath {
19 pub space_id: Uuid,
20 pub project_id: Uuid,
21 pub view_id: Uuid,
22}
23
24#[derive(Debug, Clone, Deserialize)]
25pub struct DocumentPath {
26 pub space_id: Uuid,
27 pub project_id: Uuid,
28 pub doc_id: Uuid,
29}
30
31#[derive(Debug, Clone, Deserialize)]
32pub struct LinkPath {
33 pub space_id: Uuid,
34 pub project_id: Uuid,
35 pub link_id: Uuid,
36}
37
38#[derive(Debug, Clone, Deserialize)]
39pub struct FavoritePath {
40 pub space_id: Uuid,
41 pub project_id: Uuid,
42 pub favorite_id: Uuid,
43}
No newline at end of file