You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
792 B

import request from "@/utils/request";
import {host} from "@/config/host";
/**
* 聊天列表
* @param page
* @returns {Promise<unknown>}
*/
export function chatList(page, is_worker){
return request({
url:`${host}/user/chat-list`,
method:'post',
data:{
page: page,
limit: 10,
is_worker: is_worker
}
})
}
/**
* 获取聊天token
* @param order_service_id 订单ID
* @param user_sign 用户类型:1 用户, 2 服务人员
* @returns {Promise | Promise<unknown>}
*/
export function getToken(order_service_id, user_sign){
return request({
url:'/user/chat-token',
method:"post",
data:{
order_service_id:order_service_id,
type:user_sign
}
})
}