1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
| import request from "@/request";
|
| // 获取消息列表
| export const _getMsg = (params) => {
| return request({
| url: "api/newOnlinechat!list.action",
| // loading: true,
| method: "GET",
| params: {
| message_id: params.message_id || '', // 翻页用到
| show_img: params.show_img || true
| }
| })
| };
|
| // 未读消息
| export const _getUnreadMsg = () => {
| return request({
| url: "api/newOnlinechat!unread.action",
| method: "GET",
| loading: false,
| })
| };
|
| // 发送消息
| export const _sendMsg= (type = 'text', content = '') => {
| return request({
| url: "api/newOnlinechat!send.action",
| // loading: true,
| method: "GET",
| params: {
| type, // 消息类型, img / text
| content
| }
| })
| };
|
|