refactor(project): Reorganize frontend and backend directories

This commit is contained in:
2026-03-18 10:45:15 +08:00
parent cc9eaf4cdf
commit 92a139e470
513 changed files with 28251 additions and 287 deletions
@@ -0,0 +1,30 @@
import request from '@/utils/request.ts'
/**
* 文件上传 API
*/
export const uploadApi = {
/**
* 上传图片
*/
uploadImage(file: File, onProgress?: (percent: number) => void): Promise<string> {
return request.upload('/user/profile/avatar', file, onProgress)
},
/**
* 上传视频
*/
uploadVideo(file: File, onProgress?: (percent: number) => void): Promise<{ videoUrl: string; coverUrl: string }> {
return request.upload('/content/video/upload', file, onProgress)
}
}
// 导出所有 API
export * from './auth.ts'
export * from './user.ts'
export * from './video.ts'
export * from './comment.ts'
export * from './category.ts'
export * from './danmaku.ts'
export * from './favorite.ts'
export * from './recommend.ts'