mirror of
https://github.com/a-mayb3/KanbanCloneAngular.git
synced 2026-03-21 18:05:38 +01:00
Base api connection requirements and models
This commit is contained in:
parent
9ab0505ed4
commit
2cf0856db5
7 changed files with 226 additions and 0 deletions
26
src/app/models/projects.models.ts
Normal file
26
src/app/models/projects.models.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import { User } from "./auth.models";
|
||||
import { Task } from "./tasks.models";
|
||||
|
||||
export interface Project {
|
||||
id: number;
|
||||
name: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface ProjectFull {
|
||||
id: number;
|
||||
name: string;
|
||||
description?: string;
|
||||
tasks: Task[];
|
||||
users: User[];
|
||||
}
|
||||
|
||||
export interface CreateProjectRequest {
|
||||
name: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface UpdateProjectRequest {
|
||||
name?: string;
|
||||
description?: string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue