论坛,聊天室前后端对接

Change-Id: I90740329ab40dc050e8a791a382ab187900d673a
diff --git a/src/api/userHistory.js b/src/api/userHistory.js
new file mode 100644
index 0000000..2853d92
--- /dev/null
+++ b/src/api/userHistory.js
@@ -0,0 +1,15 @@
+import request from './request'
+
+export function getUserHistory(userId) {
+    return request({
+        url: `/api/history/${userId}`,
+        method: 'get'
+    })
+}
+
+export function getUserHistoryByType(userId, type) {
+    return request({
+        url: `/api/history/${userId}/${type}`,
+        method: 'get'
+    })
+} 
\ No newline at end of file