소스 검색

add api/apiUser.js

vbea 1 년 전
부모
커밋
220e5ad033
1개의 변경된 파일15개의 추가작업 그리고 0개의 파일을 삭제
  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
+    })
+  },
+}