Sfoglia il codice sorgente

add api/apiUser.js

vbea 1 anno fa
parent
commit
220e5ad033
1 ha cambiato i file con 15 aggiunte e 0 eliminazioni
  1. 15 0
      WebApp-Lite/api/apiUser.js

+ 15 - 0
WebApp-Lite/api/apiUser.js

@@ -0,0 +1,15 @@
+import {base_api, get, post} from './http.js'
+
+export default {
+  /**
+   * 提交用户反馈
+   * @param {Object} data {feedback,typeOfFeedback}
+   * @return Promise
+   */
+  submitFeedback(data) {
+    return post({
+      url: base_api + "user/feedbacks",
+      data: data
+    })
+  },
+}