|
@@ -43,6 +43,19 @@ export const PatentStore = defineStore('patent', () => {
|
|
const res = await axios.$post(`${api.url}/import`, payload)
|
|
const res = await axios.$post(`${api.url}/import`, payload)
|
|
return res
|
|
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 {
|
|
return {
|
|
count,
|
|
count,
|
|
doubleCount,
|
|
doubleCount,
|
|
@@ -52,6 +65,9 @@ export const PatentStore = defineStore('patent', () => {
|
|
create,
|
|
create,
|
|
update,
|
|
update,
|
|
del,
|
|
del,
|
|
- pimport
|
|
|
|
|
|
+ pimport,
|
|
|
|
+ pupdateuser,
|
|
|
|
+ pdelmany,
|
|
|
|
+ pdeletion
|
|
}
|
|
}
|
|
})
|
|
})
|