增加下载同步功能,可以导出已下载作品。避免另一个设备的重复下载,修复日志bug

This commit is contained in:
2025-10-01 18:58:50 +08:00
parent d3121bf7dd
commit 0d294536ca
23 changed files with 1818 additions and 230 deletions
+2 -2
View File
@@ -141,7 +141,7 @@ router.get('/artworks/:artworkId', async (req, res) => {
router.delete('/artworks/:artworkId', async (req, res) => {
try {
const { artworkId } = req.params
const result = await repositoryService.deleteArtwork(artworkId)
const result = await repositoryService.deleteArtwork(artworkId, req)
res.json(ResponseUtil.success(result))
} catch (error) {
res.status(500).json(ResponseUtil.error(error.message))
@@ -380,4 +380,4 @@ function getContentType(extension) {
return contentTypes[extension.toLowerCase()] || 'application/octet-stream'
}
module.exports = router
module.exports = router