fix(*): 素材库与画布 - 修复批量删除刷新、选择布局及工具引用
This commit is contained in:
1 parent
4e0b0a9256
commit
0146a232a7
27 files changed
+852
-109
No files matched your search
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user