import request from '@/utils/request';

/*
 * 分页查询
 */
export const getTaIncompatible = (params) => request('/taIncompatible', { params });

/*
 * 相容性分页查询
 */
export const getTaIncompatibleRule = (params) => request('/taIncompatible/rule', { params });

/*
 * 新增数据
 */
export const postTaIncompatible = (data) => request('/taIncompatible', { data, method: 'post' });

/*
 * 通过ID查询单条数据
 */
export const getTaIncompatibleById = (id) => request(`/taIncompatible/${id}`);

/*
 * 更新数据
 */
export const putTaIncompatible = (id, data) => request(`/taIncompatible/${id}`, { data, method: 'put' });

/*
 * 通过主键删除数据
 */
export const deleteTaIncompatible = (id) => request(`/taIncompatible/${id}`, { method: 'delete' });
