guhongwei 2 år sedan
förälder
incheckning
c69aa101cd
1 ändrade filer med 17 tillägg och 1 borttagningar
  1. 17 1
      src/stores/patent/patent.ts

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

@@ -43,6 +43,19 @@ export const PatentStore = defineStore('patent', () => {
     const res = await axios.$post(`${api.url}/import`, payload)
     return res
   }
+  const pupdateuser = async (payload: any): Promise<IQueryResult> => {
+    const res = await axios.$post(`${api.url}/updateUser`, payload)
+    return res
+  }
+  const pdelmany = async (payload: any): Promise<IQueryResult> => {
+    const res = await axios.$post(`${api.url}/deleteMany`, payload)
+    return res
+  }
+  const pdeletion = async (): Promise<IQueryResult> => {
+    const res = await axios.$get(`${api.url}/deletion`)
+    return res
+  }
+
   return {
     count,
     doubleCount,
@@ -52,6 +65,9 @@ export const PatentStore = defineStore('patent', () => {
     create,
     update,
     del,
-    pimport
+    pimport,
+    pupdateuser,
+    pdelmany,
+    pdeletion
   }
 })