import { uploadFormDataSimpleCompat } from "@/api/upload.js";

/**
 * @name 文件上传模块（图片/视频统一走 @/api/upload.js → /upload/simple）
 * @param options 透传 `uploadFormDataSimpleCompat`（如 `skipSimpleUploadOverlay`），多图串行上传时可避免重复全局弹层
 */
export const uploadImg = (params: FormData, options?: Record<string, unknown>) =>
  uploadFormDataSimpleCompat(params, options ?? {});

export const uploadImgStore = (params: FormData, options?: Record<string, unknown>) =>
  uploadFormDataSimpleCompat(params, options ?? {});

export const uploadVideo = (params: FormData, options?: Record<string, unknown>) =>
  uploadFormDataSimpleCompat(params, options ?? {});
