第一次提交
This commit is contained in:
19
api/chat.js
Normal file
19
api/chat.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import http from './index.js';
|
||||
|
||||
|
||||
export const getConversationList = () => http.get('/love/chat-conversation/app')
|
||||
|
||||
export const sendMessage = (data) => http.post('/love/chat-message/app/send', data)
|
||||
|
||||
export const getFriemdMessages = (friendId) => http.get('/love/chat-message/app/list/' + friendId)
|
||||
|
||||
export const postMarkRead = (data) => http.post('/love/chat-conversation/app/read', data)
|
||||
|
||||
export const removeConversation = (id) => http.delete('/love/chat-conversation/' + id)
|
||||
export default {
|
||||
getConversationList,
|
||||
sendMessage,
|
||||
getFriemdMessages,
|
||||
postMarkRead,
|
||||
removeConversation
|
||||
}
|
||||
Reference in New Issue
Block a user