video.uts 436 B

123456789101112131415
  1. /**
  2. * 视频上传接口
  3. */
  4. import { uploadVideo as uploadVideoUtil } from '../../utils/upload'
  5. import type { UploadResponse } from '../../types/workbench'
  6. /**
  7. * 上传视频
  8. * @param filePath 文件路径
  9. * @param businessType 业务类型模块,默认为 'video'
  10. */
  11. export const uploadVideo = (filePath: string, businessType: string | null): Promise<UploadResponse> => {
  12. return uploadVideoUtil(filePath, businessType)
  13. }