taSourceAttach.js 633B

1234567891011121314151617181920212223242526
  1. import request from '@/utils/request';
  2. /*
  3. * 分页查询
  4. */
  5. export const getTaSourceAttachList = (params) => request('/taSourceAttach', { params });
  6. /*
  7. * 依据ID查询
  8. */
  9. export const getTaSourceAttachById = (id) => request(`/taSourceAttach/${id}`);
  10. /*
  11. * 新增数据
  12. */
  13. export const postTaSourceAttach = (data) => request('/taSourceAttach', { data, method: 'post' });
  14. /*
  15. * 更新数据
  16. */
  17. export const putTaSourceAttach = (id, data) => request(`/taSourceAttach/${id}`, { data, method: 'put' });
  18. /*
  19. * 删除数据
  20. */
  21. export const deleteTaSourceAttach = (id) => request(`/taSourceAttach/${id}`, { method: 'delete' });