论坛,聊天室前后端对接
Change-Id: I90740329ab40dc050e8a791a382ab187900d673a
diff --git a/src/api/topicView.js b/src/api/topicView.js
new file mode 100644
index 0000000..f4410e1
--- /dev/null
+++ b/src/api/topicView.js
@@ -0,0 +1,16 @@
+import request from './request'
+
+export function recordTopicView(params) {
+ return request({
+ url: '/topic-views/record',
+ method: 'post',
+ params
+ })
+}
+
+export function getUserViewHistory() {
+ return request({
+ url: '/topic-views',
+ method: 'get'
+ })
+}
\ No newline at end of file