feat: with create project

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-05-28 16:25:25 +02:00
parent c81a988061
commit 6dc0c24443
8 changed files with 92 additions and 40 deletions

View File

@@ -1,3 +1,4 @@
pub mod mutation;
pub mod queries;
pub mod requests;
pub mod responses;
@@ -11,4 +12,6 @@ pub struct ProjectDto {
pub id: Uuid,
pub name: String,
pub description: Option<String>,
pub user_id: String,
}

View File

@@ -0,0 +1,8 @@
use async_graphql::InputObject;
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq, InputObject)]
pub struct CreateProjectMutation {
pub name: String,
pub description: Option<String>,
}

View File

@@ -7,8 +7,3 @@ pub struct GetProjectQuery {
pub project_id: Option<Uuid>,
pub item_id: Option<Uuid>,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq, InputObject)]
pub struct GetProjectsQuery {
pub user_id: Uuid,
}