taRotation.js 613B

1234567891011121314151617181920212223242526
  1. import request from '@/utils/request';
  2. /*
  3. * 分页查询
  4. */
  5. export const getTaRotation = (params) => request('/taRotation', { params });
  6. /*
  7. * 新增数据
  8. */
  9. export const postTaRotation = (data) => request('/taRotation', { data, method: 'post' });
  10. /*
  11. * 通过ID查询单条数据
  12. */
  13. export const getTaRotationById = (id) => request(`/taRotation/${id}`);
  14. /*
  15. * 更新数据
  16. */
  17. export const putTaRotation = (id, data) => request(`/taRotation/${id}`, { data, method: 'put' });
  18. /*
  19. * 通过主键删除数据
  20. */
  21. export const deleteTaRotation = (id) => request(`/taRotation/${id}`, { method: 'delete' });