Newer
Older
Nanping_sponge_SJJC / src / api / rongyun / rongyunApi.js
@liyingjing liyingjing on 25 Oct 2023 2 KB 数据检测
// 融云api
import request from '@/utils/request';

export const rongyunUser = (row) => {
  return request({
    url: `/business/rongyunUser/queryPage`,
    method: "post",
    data: row,
  });
};
export const rongyunGroupList = (row) => {
  return request({
    url: `/business/rongyunGroup/weblist`,
    method: "post",
    data: row,
  });
};
export const rongyunQueryList = (row) => {
  return request({
    url: `/business/rongyunUser/queryList`,
    method: "post",
    data: row,
  });
};
export const queryToken = (row) => {
  return request({
    url: `/business/rongyunUser/queryToken`,
    method: "post",
    data: row,
  });
};
export const queryUserData = (row) => {
  return request({
    url: `/business/rongyunUser/queryUserData`,
    method: "post",
    data: row,
  });
};
export const rongyunGroupSave = (row) => {
  return request({
    url: `/business/rongyunGroup/websave`,
    method: "post",
    data: row,
  });
};

/*** 融云配置 ***/
// export const selectManagePage = (params) => {
//   return request(
//     `/rongyunUser/selectManagePage`,
//     {
//       method: "post",
//       data: params || "",
//     }
//   );
// };

export const selectManagePage = (row) => {
  return request({
    url: `/business/rongyunUser/selectManagePage`,
    method: "post",
    data: row,
  });
};

/*** 融云配置注册 ***/
export const registerRongyun = (params) => {
  return request(`/business/rongyunUser/registerRongyun`, {
    method: "post",
    data: params || "",
  });
};

/*** 融云配置分组下拉框 ***/
export const queryUserClass = (params) => {
  return request(`/business/rongyunUser/queryUserClass`, {
    method: "post",
    data: params || "",
  });
};

/*** 融云配置 停用 ***/
export const ceaseUser = (params) => {
  return request(`/business/rongyunUser/ceaseUser`, {
    method: "post",
    data: params || "",
  });
};

/*** 融云配置 启用 ***/
export const startUser = (params) => {
  return request(`/business/rongyunUser/startUser`, {
    method: "post",
    data: params || "",
  });
};

/*** 融云判断状态 ***/
export const getUserStatus = (params) => {
  return request(`/business/rongyunUser/getUserStatus`, {
    method: "post",
    data: params || "",
  });
};

/*** 融云参数查询 ***/
export const Getrongyunkey = () => {
  return request(`/system/config/list?moduleKey=business-rongyun`, {
    method: "get",
  });
};