imageCheck.ts 956 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { AxiosResponse } from "axios";
  2. import { request } from "@/utils/request";
  3. import {
  4. ExamParams,
  5. ExamPageParams,
  6. RequestActionResult,
  7. } from "./types/common";
  8. import {
  9. ImageCheckListPageResult,
  10. ImageCheckFailedListPageResult,
  11. ImageCheckFailedParams,
  12. } from "./types/imageCheck";
  13. // 图片检查
  14. export const imageCheckList = (
  15. data: ExamPageParams
  16. ): Promise<ImageCheckListPageResult> =>
  17. request({
  18. url: "/api/admin/check/image/list",
  19. method: "post",
  20. params: data,
  21. });
  22. export const imageCheckFailedList = (
  23. data: ImageCheckFailedParams
  24. ): Promise<ImageCheckFailedListPageResult> =>
  25. request({
  26. url: "/api/admin/check/image/failed/page",
  27. method: "post",
  28. params: data,
  29. });
  30. export const imageCheckFailedExport = (
  31. data: ImageCheckFailedParams
  32. ): Promise<AxiosResponse<Blob>> =>
  33. request({
  34. url: "/api/admin/check/image/failed/export",
  35. method: "get",
  36. params: data,
  37. download: true,
  38. });