/*
 * @Author: SunTao 328867980@qq.com
 * @Date: 2025-02-13 09:11:50
 * @LastEditors: SunTao 328867980@qq.com
 * @LastEditTime: 2025-02-13 10:12:08
 * @FilePath: \znxjxt-ui\src\api\xj\hisense\inter-change.js
 * @Description: 海信-互通立交
 */
import request from "@/utils/request";

// 获取列表数据
export function getList(query) {
  return request({
    url: "/hxCross/page",
    method: "get",
    params: query,
  });
}

// 新增数据
export function add(data) {
  return request({
    url: "/hxCross",
    method: "post",
    data,
  });
}

// 更新数据
export function updata(data) {
  return request({
    url: "/hxCross",
    method: "put",
    data,
  });
}

// 删除数据
export function delData(id) {
  return request({
    url: `/hxCross/${id}`,
    method: "delete",
  });
}

// 获取互通立交下拉数据
export function getDropDown(params) {
  return request({
    url: "/hxCross/dropDown",
    method: "get",
    params,
  });
}
