Explorar o código

collect_id 可选

visuddhinanda %!s(int64=3) %!d(string=hai) anos
pai
achega
c2bd7733c4
Modificáronse 1 ficheiros con 17 adicións e 4 borrados
  1. 17 4
      dashboard/src/components/api/Article.ts

+ 17 - 4
dashboard/src/components/api/Article.ts

@@ -107,11 +107,11 @@ export interface IAnthologyCreateRequest {
 
 export interface IArticleMapRequest {
   id?: string;
-  collect_id: string;
-  article_id: string;
+  collect_id?: string;
+  article_id?: string;
   level: number;
   title: string;
-  children: number;
+  children?: number;
 }
 export interface IArticleMapListResponse {
   ok: boolean;
@@ -121,7 +121,20 @@ export interface IArticleMapListResponse {
     count: number;
   };
 }
-
+export interface IArticleMapAddRequest {
+  anthology_id: string;
+  article_id: string[];
+  operation: string;
+}
+export interface IArticleMapUpdateRequest {
+  data: IArticleMapRequest[];
+  operation: string;
+}
+export interface IArticleMapAddResponse {
+  ok: boolean;
+  message: string;
+  data: number;
+}
 export interface IDeleteResponse {
   ok: boolean;
   message: string;