fix(*): 素材库与画布 - 修复批量删除刷新、选择布局及工具引用

This commit is contained in:
ddCat committed 2026-09-21 20:14:05 +08:00
1 parent c5b81f696c
commit dc1ad68015
27 files changed
+852 -109

No files matched your search

+11 -1
View File
@@ -128,7 +128,17 @@ func (s *Service) UpsertUserAsset(userID string, raw json.RawMessage) (UserDataS
func (s *Service) DeleteUserAsset(userID string, id string) error {
return s.host.WithStorageLock(func() error {
return s.host.DeleteUserAssetWithResources(userID, id)
return s.host.DeleteUserAssetWithResources(userID, id, false)
})
}
func (s *Service) PurgeUserAsset(userID string, id string) error {
return s.PurgeUserAssets(userID, []string{id})
}
func (s *Service) PurgeUserAssets(userID string, ids []string) error {
return s.host.WithStorageLock(func() error {
return s.host.PurgeUserAssetsWithResources(userID, ids)
})
}