@sksoft/api
Advanced tools
@@ -19,1 +19,2 @@ export declare function saveQuestion(params: any): Promise<any>; | ||
| export declare function sharedQuestion(params: any): Promise<any>; | ||
| export declare function exportQuestion(): Promise<any>; |
@@ -20,3 +20,4 @@ import { $request } from "./reques/index.mjs"; | ||
| DeleteByStdId: "/question/deleteByStdId", | ||
| SharedQuestion: "/question/sharedQuestion" | ||
| SharedQuestion: "/question/sharedQuestion", | ||
| ExportQuestion: "/question/exportQuestion" | ||
| }; | ||
@@ -183,2 +184,14 @@ function saveQuestion(params) { | ||
| } | ||
| function exportQuestion() { | ||
| return $request.get( | ||
| { | ||
| url: Api.ExportQuestion, | ||
| responseType: "blob", | ||
| headers: { | ||
| "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8" | ||
| } | ||
| }, | ||
| { isTransformResponse: false } | ||
| ); | ||
| } | ||
| export { | ||
@@ -189,2 +202,3 @@ auditQuestion, | ||
| deleteQuestion, | ||
| exportQuestion, | ||
| findAuthListBean, | ||
@@ -191,0 +205,0 @@ findListBean, |
@@ -19,1 +19,2 @@ export declare function saveQuestion(params: any): Promise<any>; | ||
| export declare function sharedQuestion(params: any): Promise<any>; | ||
| export declare function exportQuestion(): Promise<any>; |
@@ -22,3 +22,4 @@ "use strict"; | ||
| DeleteByStdId: "/question/deleteByStdId", | ||
| SharedQuestion: "/question/sharedQuestion" | ||
| SharedQuestion: "/question/sharedQuestion", | ||
| ExportQuestion: "/question/exportQuestion" | ||
| }; | ||
@@ -185,2 +186,14 @@ function saveQuestion(params) { | ||
| } | ||
| function exportQuestion() { | ||
| return index.$request.get( | ||
| { | ||
| url: Api.ExportQuestion, | ||
| responseType: "blob", | ||
| headers: { | ||
| "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8" | ||
| } | ||
| }, | ||
| { isTransformResponse: false } | ||
| ); | ||
| } | ||
| exports.auditQuestion = auditQuestion; | ||
@@ -190,2 +203,3 @@ exports.createTempWpsQuestion = createTempWpsQuestion; | ||
| exports.deleteQuestion = deleteQuestion; | ||
| exports.exportQuestion = exportQuestion; | ||
| exports.findAuthListBean = findAuthListBean; | ||
@@ -192,0 +206,0 @@ exports.findListBean = findListBean; |
+1
-1
| { | ||
| "name": "@sksoft/api", | ||
| "version": "1.0.5", | ||
| "version": "1.0.6", | ||
| "main": "index.ts", | ||
@@ -5,0 +5,0 @@ "module": "dist/es/index.mjs", |
+15
-0
@@ -22,4 +22,6 @@ import { $request } from "./reques" | ||
| SharedQuestion: '/question/sharedQuestion', | ||
| ExportQuestion: '/question/exportQuestion', | ||
| } | ||
@@ -193,2 +195,15 @@ | ||
| export function exportQuestion() { | ||
| return $request.get( | ||
| { | ||
| url: Api.ExportQuestion, | ||
| responseType: 'blob', | ||
| headers: { | ||
| 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8', | ||
| }, | ||
| }, | ||
| { isTransformResponse: false } | ||
| ) | ||
| } | ||
80553
1.39%3217
1.35%