mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-19 00:10:39 +08:00
删除书籍前取消书籍与文件的关联
This commit is contained in:
@@ -11,7 +11,6 @@ import plus.bookshelf.Dao.DO.FileDO;
|
||||
import plus.bookshelf.Dao.Mapper.FileDOMapper;
|
||||
import plus.bookshelf.Dao.Mapper.FileObjectDOMapper;
|
||||
import plus.bookshelf.Service.Model.FileModel;
|
||||
import plus.bookshelf.Service.Model.UserModel;
|
||||
import plus.bookshelf.Service.Service.CosPresignedUrlGenerateLogService;
|
||||
import plus.bookshelf.Service.Service.FileService;
|
||||
|
||||
@@ -132,6 +131,16 @@ public class FileServiceImpl implements FileService {
|
||||
return fileDO;
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消文件和书籍的关联
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public Integer unbindBook(Integer bookId) {
|
||||
return fileDOMapper.unbindBook(bookId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取上一步添加的文件Id
|
||||
*
|
||||
|
Reference in New Issue
Block a user