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