import request from '@/utils/request';

/*
 * 分页查询
 */
export const getTaFeedback = (params) => request('/api/taFeedback', { params });

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

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

/**
 * 更新数据
 * @param {*} id
 * @param {*} data
 * @returns
 */
export const putTaFeedback = (id, data) => request(`/api/taFeedback/${id}`, { data, method: 'put' });

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