mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 17:41:57 +08:00
Feat: mount storage policy for folders in WebDAV
This commit is contained in:
@@ -220,6 +220,11 @@ func (share *Share) Delete() error {
|
||||
return DB.Model(share).Delete(share).Error
|
||||
}
|
||||
|
||||
// DeleteShareBySourceIDs 根据原始资源类型和ID删除文件
|
||||
func DeleteShareBySourceIDs(sources []uint, isDir bool) error {
|
||||
return DB.Where("source_id in (?) and is_dir = ?", sources, isDir).Delete(&Share{}).Error
|
||||
}
|
||||
|
||||
// ListShares 列出UID下的分享
|
||||
func ListShares(uid uint, page, pageSize int, order string, publicOnly bool) ([]Share, int) {
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user