feat(wopi): put relative file

This commit is contained in:
Aaron Liu
2025-05-23 15:37:02 +08:00
parent 1a3c3311e6
commit 9f5ebe11b6
6 changed files with 613 additions and 52 deletions

View File

@@ -26,6 +26,11 @@ import (
"github.com/samber/lo"
)
type PutRelativeResponse struct {
Name string
Url string
}
type DirectLinkResponse struct {
Link string `json:"link"`
FileUrl string `json:"file_url"`
@@ -174,10 +179,11 @@ type WopiFileInfo struct {
OwnerId string
// Permission
ReadOnly bool
UserCanRename bool
UserCanReview bool
UserCanWrite bool
ReadOnly bool
UserCanRename bool
UserCanReview bool
UserCanWrite bool
UserCanNotWriteRelative bool
SupportsRename bool
SupportsReviewing bool