import request from "@/utils/request"; // 新增会话小组 export const rongyunGroupSave = (params) => { return request({ url: '/rcloud/rcloudUnitUserToken/websaveGroup', method: "post", data: params, }); }; // 会话小组添加人员 export const groupJoinUsers = (params) => { return request({ url: '/rcloud/rcloudUnitUserToken/groupJoinUsers', method: "post", data: params, }); }; // 查询用户token export function queryToken (params) { return request({ url: "/rcloud/rcloudUnitUserToken/list", method: "get", params: params, }); } // 联系人列表 export const queryPage = (params) => { return request({ url: '/rcloud/rcloudUnitUser/page', method: 'get', params: params }) }; // 群呼列表 export const rongyunQueryList = (query) => { return request({ url: '/rcloud/rcloudUnitClass/queryGroupAndUserList', method: 'get', params: query }) }; // 批量新增融合通讯通话 export const batchAdd = (data) => { return request({ url: '/rcloud/rcloudUnitHistroyTalk/batchAdd', method: 'POST', data: data }) }; // 接听融合通讯通话 export const answer = (data) => { return request({ url: '/rcloud/rcloudUnitHistroyTalk/answer', method: 'POST', data: data }) }; // 挂断融合通讯通话 export const hangUp = (data) => { return request({ url: '/rcloud/rcloudUnitHistroyTalk/hangUp', method: 'POST', data: data }) }; /*** 融云判断状态 ***/ export const getUserStatus = (params) => { return request({ url: '/rcloud/rcloudUnitUserToken/getUserStatus', method: "get", params: params || "", }); }; // 查询融云用户相关信息 export function listrcloudUnitUser (query) { return request({ url: '/rcloud/rcloudUnitUser/list', method: 'get', params: query }) }