新增 文件拖入操作和评分功能和优化筛选

This commit is contained in:
Chen committed 2025-12-06 23:56:11 +08:00
1 parent 491a56ef1d
commit 85e7711c1a
15 files changed
+1283 -72

No files matched your search

+11
View File
@@ -65,3 +65,14 @@ export function getOriginalUrl(libraryId, path) {
export async function openInExplorer(libraryId, path) {
return api.post(`/image/${libraryId}/open-file`, { path });
}
/**
* 更新图片评分(支持批量)
*/
export async function updateRating(libraryId, paths, rating) {
return api.put('/image/rating', {
libraryId,
paths: Array.isArray(paths) ? paths : [paths],
rating
});
}