import { post } from "@/utils/request";

interface PreviewItemParams {
  previewId: string | number;
  filter?: string | [];
  page?: number;
  perPage?: number;
}

// 查看视图
export function searchInfo(data: PreviewItemParams) {
  return post({
    url: `/api/v1/preview/info`,
    data: {
      preview_id: data.previewId,
      filter: data.filter,
      page: data.page,
      per_page: data.perPage,
    },
  });
}
