集成websocket

This commit is contained in:
wangxulei
2025-01-09 18:16:13 +08:00
parent 8516efd1c8
commit 2e07ea8a71
4 changed files with 643 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
import request from '@/utils/request'
export function getChatPage(params) {
return request({
url: '/admin/chat/page',
method: 'get',
params
})
}
export function getChatList(params) {
return request({
url: '/admin/chat/list',
method: 'get',
params
})
}
export function addChat(data) {
return request({
url: '/admin/chat/add',
method: 'post',
data: data
})
}
export function editChat(data) {
return request({
url: '/admin/chat/update',
method: 'post',
data: data
})
}
export function deleteChat(copyId) {
return request({
url: '/admin/chat/delete/' + copyId,
method: 'get'
})
}
export function getAuthorChatList() {
return request({
url: '/admin/chat/authorList',
method: 'get'
})
}