Browse Source

add api/apiUser.js

vbea 1 năm trước cách đây
mục cha
commit
220e5ad033
1 tập tin đã thay đổi với 15 bổ sung0 xóa
  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
+    })
+  },
+}