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
}
