import request from '@/utils/request';

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

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

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

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

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