index.ts 739 B

12345678910111213141516171819202122232425
  1. import request from '@/utils/request';
  2. import { AxiosPromise } from 'axios';
  3. import { ArcChangeLogVO } from '@/api/archieves/changeLog/types';
  4. /**
  5. * 分页查询变更日志
  6. */
  7. export const listChangeLog = (targetId: string | number, targetType: string, query?: PageQuery): AxiosPromise<ArcChangeLogVO[]> => {
  8. return request({
  9. url: '/archieves/changeLog/list',
  10. method: 'get',
  11. params: { targetId, targetType, ...query }
  12. });
  13. };
  14. /**
  15. * 查询全部变更日志(不分页)
  16. */
  17. export const listAllChangeLog = (targetId: string | number, targetType: string): AxiosPromise<ArcChangeLogVO[]> => {
  18. return request({
  19. url: '/archieves/changeLog/listAll',
  20. method: 'get',
  21. params: { targetId, targetType }
  22. });
  23. };