guhongwei 2 년 전
부모
커밋
a00ffa6809
1개의 변경된 파일11개의 추가작업 그리고 1개의 파일을 삭제
  1. 11 1
      src/stores/patent/patent.ts

+ 11 - 1
src/stores/patent/patent.ts

@@ -55,6 +55,14 @@ export const PatentStore = defineStore('patent', () => {
     const res = await axios.$get(`${api.url}/deletion`)
     return res
   }
+  const pexport = async (payload: any): Promise<IQueryResult> => {
+    const res = await axios.$post(`${api.url}/export`, payload)
+    return res
+  }
+  const pqueue = async (): Promise<IQueryResult> => {
+    const res = await axios.$get(`${api.url}/findFromQueue`)
+    return res
+  }
 
   return {
     count,
@@ -68,6 +76,8 @@ export const PatentStore = defineStore('patent', () => {
     pimport,
     pupdateuser,
     pdelmany,
-    pdeletion
+    pdeletion,
+    pexport,
+    pqueue
   }
 })