Newer
Older
urbanLifeline_YanAn / src / views / RongyunCommunication / rongyunjs / rongyunApi.js
@zhangqy zhangqy on 17 Oct 1 KB 1
  1. import request from "@/utils/request";
  2.  
  3. // 新增会话小组
  4. export const rongyunGroupSave = (params) => {
  5. return request({
  6. url: '/business/rcloudUnitUserToken/websaveGroup',
  7. method: "post",
  8. data: params,
  9. });
  10. };
  11.  
  12. // 会话小组添加人员
  13. export const groupJoinUsers = (params) => {
  14. return request({
  15. url: '/business/rcloudUnitUserToken/groupJoinUsers',
  16. method: "post",
  17. data: params,
  18. });
  19. };
  20.  
  21. // 查询用户token
  22. export function queryToken (params) {
  23. return request({
  24. url: "/business/rcloudUnitUserToken/list",
  25. method: "get",
  26. params: params,
  27. });
  28. }
  29.  
  30. // 联系人列表
  31. export const queryPage = (params) => {
  32. return request({
  33. url: '/business/rcloudUnitUser/page',
  34. method: 'get',
  35. params: params
  36. })
  37. };
  38.  
  39. // 群呼列表
  40. export const rongyunQueryList = (query) => {
  41. return request({
  42. url: '/business/rcloudUnitClass/queryGroupAndUserList',
  43. method: 'get',
  44. params: query
  45. })
  46. };
  47.  
  48. // 批量新增融合通讯通话
  49. export const batchAdd = (data) => {
  50. return request({
  51. url: '/business/rcloudUnitHistroyTalk/batchAdd',
  52. method: 'POST',
  53. data: data
  54. })
  55. };
  56.  
  57. // 接听融合通讯通话
  58. export const answer = (data) => {
  59. return request({
  60. url: '/business/rcloudUnitHistroyTalk/answer',
  61. method: 'POST',
  62. data: data
  63. })
  64. };
  65.  
  66. // 挂断融合通讯通话
  67. export const hangUp = (data) => {
  68. return request({
  69. url: '/business/rcloudUnitHistroyTalk/hangUp',
  70. method: 'POST',
  71. data: data
  72. })
  73. };
  74.  
  75.  
  76. /*** 融云判断状态 ***/
  77. export const getUserStatus = (params) => {
  78. return request({
  79. url: '/business/rcloudUnitUserToken/getUserStatus',
  80. method: "get",
  81. params: params || "",
  82. });
  83. };
  84.  
  85.  
  86. // 查询融云用户相关信息
  87. export function listrcloudUnitUser (query) {
  88. return request({
  89. url: '/business/rcloudUnitUser/list',
  90. method: 'get',
  91. params: query
  92. })
  93. }