feat: Move files in file manager #1826 (#1837)

### What problem does this PR solve?

feat: Move files in file manager #1826

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-08-07 10:12:11 +08:00
committed by GitHub
parent 4c2906d6fd
commit c55e9d16da
14 changed files with 292 additions and 24 deletions

View File

@ -13,6 +13,7 @@ const {
connectFileToKnowledge,
get_document_file,
getFile,
moveFile,
} = api;
const methods = {
@ -49,6 +50,10 @@ const methods = {
method: 'get',
responseType: 'blob',
},
moveFile: {
url: moveFile,
method: 'post',
},
} as const;
const fileManagerService = registerServer<keyof typeof methods>(