mirror of
https://github.com/PlayEdu/backend
synced 2025-06-28 09:22:50 +08:00
优化资源的分类提交
This commit is contained in:
parent
7de1af9b50
commit
87e4a6cc64
@ -20,7 +20,7 @@ export function minioPreSignUrl(
|
||||
export function minioMergeVideo(
|
||||
filename: string,
|
||||
uploadId: string,
|
||||
categoryId: number,
|
||||
categoryIds: string,
|
||||
originalFilename: string,
|
||||
extension: string,
|
||||
size: number,
|
||||
@ -31,7 +31,7 @@ export function minioMergeVideo(
|
||||
filename,
|
||||
upload_id: uploadId,
|
||||
original_filename: originalFilename,
|
||||
category_id: categoryId,
|
||||
category_ids: categoryIds,
|
||||
size,
|
||||
duration,
|
||||
extension,
|
||||
|
@ -17,7 +17,7 @@ import { minioMergeVideo, minioUploadId } from "../../api/upload";
|
||||
import { UploadChunk } from "../../js/minio-upload-chunk";
|
||||
|
||||
interface PropsInterface {
|
||||
categoryId: number;
|
||||
categoryIds: number[];
|
||||
onUpdate: () => void;
|
||||
}
|
||||
|
||||
@ -81,7 +81,7 @@ export const UploadVideoButton = (props: PropsInterface) => {
|
||||
minioMergeVideo(
|
||||
item.filename,
|
||||
item.uploadId,
|
||||
props.categoryId,
|
||||
props.categoryIds.join(','),
|
||||
item.name,
|
||||
"mp4",
|
||||
item.size,
|
||||
|
@ -5,7 +5,7 @@ export const TestPage: React.FC = () => {
|
||||
return (
|
||||
<div>
|
||||
<UploadVideoButton
|
||||
categoryId={0}
|
||||
categoryIds={[]}
|
||||
onUpdate={() => {
|
||||
console.log(123);
|
||||
}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user