Newer
Older
urbanLifeline_YanAn / src / views / RongyunCommunication / rongyunjs / rongyunApi.js
@zhangqy zhangqy on 3 Oct 1 KB first commit
import request from "@/utils/request";

// 新增会话小组
export const rongyunGroupSave = (params) => {
  return request({
    url: '/prod-api/business/rcloudUnitUserToken/websaveGroup',
    method: "post",
    data: params,
  });
};

// 会话小组添加人员
export const groupJoinUsers = (params) => {
  return request({
    url: '/prod-api/business/rcloudUnitUserToken/groupJoinUsers',
    method: "post",
    data: params,
  });
};

// 查询用户token
export function queryToken (params) {
  return request({
    url: "/prod-api/business/rcloudUnitUserToken/list",
    method: "get",
    params: params,
  });
}

// 联系人列表
export const queryPage = (params) => {
  return request({
    url: '/prod-api/business/rcloudUnitUser/page',
    method: 'get',
    params: params
  })
};

// 群呼列表
export const rongyunQueryList = (query) => {
  return request({
    url: '/prod-api/business/rcloudUnitClass/queryGroupAndUserList',
    method: 'get',
    params: query
  })
};

// 批量新增融合通讯通话
export const batchAdd = (data) => {
  return request({
    url: '/prod-api/business/rcloudUnitHistroyTalk/batchAdd',
    method: 'POST',
    data: data
  })
};

// 接听融合通讯通话
export const answer = (data) => {
  return request({
    url: '/prod-api/business/rcloudUnitHistroyTalk/answer',
    method: 'POST',
    data: data
  })
};

// 挂断融合通讯通话
export const hangUp = (data) => {
  return request({
    url: '/prod-api/business/rcloudUnitHistroyTalk/hangUp',
    method: 'POST',
    data: data
  })
};


/*** 融云判断状态 ***/
export const getUserStatus = (params) => {
  return request({
    url: '/prod-api/business/rcloudUnitUserToken/getUserStatus',
    method: "get",
    params: params || "",
  });
};


// 查询融云用户相关信息
export function listrcloudUnitUser (query) {
  return request({
    url: '/prod-api/business/rcloudUnitUser/list',
    method: 'get',
    params: query
  })
}