feat: upload success

This commit is contained in:
yanghao05
2025-04-08 20:42:34 +08:00
parent 45ed2f508b
commit 8d7a0688f1
5 changed files with 144 additions and 28 deletions

View File

@@ -6,4 +6,12 @@ export const mediaService = {
params: { page, limit }
});
},
getUploadToken() {
return httpClient.get('/admin/uploads/token');
},
createMedia(mediaInfo) {
return httpClient.post('/admin/medias', mediaInfo);
}
};