config-management.js 906 Bytes
import request from "@/utils/request";

/**
 * @description 获取配置
 * @param {Object} data
 * @method GET
 */
export function getConfigList(data) {
  return request({
    url: "/bus-customer/sysConfigCenter/getConfigList",
    method: "post",
    data,
  });
}

/**
 * @description 刷新配置
 * */
export function refreshConfig(data) {
  return request({
    url: `/bus-customer/sysConfigCenter/refreshConfig/${data.id}`,
    method: "get",
  });
}

/**
 * @description 添加配置
 * @param {Object} data
 * @method POST
 */
export function addConfig(data) {
  return request({
    url: "/bus-customer/sysConfigCenter/addConfig",
    method: "post",
    data,
  });
}

/**
 * @description 修改配置
 * @param {Object} data
 * @method POST
 */
export function updateConfig(data) {
  return request({
    url: "/bus-customer/sysConfigCenter/updateConfig",
    method: "post",
    data,
  });
}