import request from "./request";
let api = "/api";
export function sessionList(curUserId) {
return request({
url: api + "/sessionList/already?id=" + curUserId,
method: "GET",
});
}
export function sessionListNot(curUserId) {
return request({
url: api + "/sessionList/not?id=" + curUserId,
method: "GET",
});
}
export function createSession(curUserId, toUserId, toUserName) {
return request({
url:
api +
"/createSession?id=" +
curUserId +
"&toUserId=" +
toUserId +
"&toUserName=" +
toUserName,
method: "GET",
});
}
export function msgList(sessionId) {
return request({
url: api + "/msgList?sessionId=" + sessionId,
method: "GET",
});
}
export function delSession(sessionId) {
return request({
url: api + "/delSession?sessionId=" + sessionId,
method: "GET",
});
}