Просмотр исходного кода

feat(types): 获取资料清单模板文件

lipk 2 лет назад
Родитель
Сommit
90ab2e6be7
2 измененных файлов с 23 добавлено и 7 удалено
  1. 15 1
      types/src/interface/api/workSpaceApi.ts
  2. 8 6
      types/src/interface/matter.ts

+ 15 - 1
types/src/interface/api/workSpaceApi.ts

@@ -1,4 +1,8 @@
-import { IMatterReportConfig, IYsProfileTemplate } from '../matter';
+import {
+  IMatterReportConfig,
+  ITemplateFile,
+  IYsProfileTemplate,
+} from '../matter';
 
 // 获取资料清单的文件结构
 export namespace GetYsProfileList {
@@ -24,3 +28,13 @@ export namespace GetProfileMatterList {
     reportConfig?: IMatterReportConfig[];
   }[];
 }
+
+export namespace GetTemplateDownload {
+  export type Params = {
+    ysTemplateID: string;
+  };
+
+  export type Response = {
+    templateFiles: ITemplateFile[];
+  };
+}

+ 8 - 6
types/src/interface/matter.ts

@@ -93,6 +93,13 @@ export interface IGatherStepMatter extends IStepMatter {
   userID: string;
 }
 
+export interface ITemplateFile {
+  originalName: string;
+  realName: string;
+  ID: string;
+  path: string;
+}
+
 export interface IYsProfileTemplate {
   ID: string;
   parentID: string;
@@ -108,12 +115,7 @@ export interface IYsProfileTemplate {
   fileNum?: number;
   remark?: string; // 备注
   profileIndex?: string; // 资料索引
-  templateFiles: {
-    originalName: string;
-    realName: string;
-    ID: string;
-    path: string;
-  }[]; // 文件模板名称
+  templateFiles: ITemplateFile[]; // 文件模板名称
 }
 
 export interface IGatherYsProfileTemplate extends IYsProfileTemplate {