visuddhinanda преди 1 година
родител
ревизия
e2e864fd5c
променени са 1 файла, в които са добавени 8 реда и са изтрити 2 реда
  1. 8 2
      dashboard-v4/dashboard/src/components/api/task.ts

+ 8 - 2
dashboard-v4/dashboard/src/components/api/task.ts

@@ -148,6 +148,7 @@ export interface IProjectUpdateRequest {
   type: TProjectType;
   type: TProjectType;
   description?: string | null;
   description?: string | null;
   parent_id?: string | null;
   parent_id?: string | null;
+  res_id?: string;
 }
 }
 
 
 export interface IProjectListResponse {
 export interface IProjectListResponse {
@@ -199,7 +200,7 @@ export interface ITaskGroupInsertData {
 export interface ITaskGroupResponse {
 export interface ITaskGroupResponse {
   ok: boolean;
   ok: boolean;
   message: string;
   message: string;
-  data: string;
+  data: { taskCount: number; taskRelationCount: number };
 }
 }
 export interface IProjectTreeInsertRequest {
 export interface IProjectTreeInsertRequest {
   studio_name: string;
   studio_name: string;
@@ -207,8 +208,13 @@ export interface IProjectTreeInsertRequest {
   data: IProjectUpdateRequest[];
   data: IProjectUpdateRequest[];
 }
 }
 
 
+interface IProjectTreeData {
+  id: string;
+  resId?: string;
+  isLeaf: boolean;
+}
 export interface IProjectTreeResponse {
 export interface IProjectTreeResponse {
   ok: boolean;
   ok: boolean;
   message: string;
   message: string;
-  data: { leafs: string[] };
+  data: { rows: IProjectTreeData[]; count: number };
 }
 }