Fix: Standardize formatting of WOPICheckFileInfoResponse struct fields
This commit is contained in:
@@ -5,37 +5,37 @@ import "time"
|
|||||||
// WOPICheckFileInfoResponse represents the response to WOPI CheckFileInfo request
|
// WOPICheckFileInfoResponse represents the response to WOPI CheckFileInfo request
|
||||||
// Reference: https://docs.microsoft.com/en-us/openspecs/office_protocols/ms-wopi/4b8ffc3f-e8a6-4169-8c4e-34924ac6ae2f
|
// Reference: https://docs.microsoft.com/en-us/openspecs/office_protocols/ms-wopi/4b8ffc3f-e8a6-4169-8c4e-34924ac6ae2f
|
||||||
type WOPICheckFileInfoResponse struct {
|
type WOPICheckFileInfoResponse struct {
|
||||||
BaseFileName string `json:"BaseFileName"`
|
BaseFileName string `json:"BaseFileName"`
|
||||||
Size int64 `json:"Size"`
|
Size int64 `json:"Size"`
|
||||||
Version string `json:"Version"`
|
Version string `json:"Version"`
|
||||||
OwnerId string `json:"OwnerId"`
|
OwnerId string `json:"OwnerId"`
|
||||||
UserId string `json:"UserId"`
|
UserId string `json:"UserId"`
|
||||||
UserFriendlyName string `json:"UserFriendlyName"`
|
UserFriendlyName string `json:"UserFriendlyName"`
|
||||||
UserCanWrite bool `json:"UserCanWrite"`
|
UserCanWrite bool `json:"UserCanWrite"`
|
||||||
UserCanRename bool `json:"UserCanRename"`
|
UserCanRename bool `json:"UserCanRename"`
|
||||||
UserCanNotWriteRelative bool `json:"UserCanNotWriteRelative"`
|
UserCanNotWriteRelative bool `json:"UserCanNotWriteRelative"`
|
||||||
ReadOnly bool `json:"ReadOnly"`
|
ReadOnly bool `json:"ReadOnly"`
|
||||||
RestrictedWebViewOnly bool `json:"RestrictedWebViewOnly"`
|
RestrictedWebViewOnly bool `json:"RestrictedWebViewOnly"`
|
||||||
UserCanCreateRelativeToFolder bool `json:"UserCanCreateRelativeToFolder"`
|
UserCanCreateRelativeToFolder bool `json:"UserCanCreateRelativeToFolder"`
|
||||||
EnableOwnerTermination bool `json:"EnableOwnerTermination"`
|
EnableOwnerTermination bool `json:"EnableOwnerTermination"`
|
||||||
SupportsUpdate bool `json:"SupportsUpdate"`
|
SupportsUpdate bool `json:"SupportsUpdate"`
|
||||||
SupportsCobalt bool `json:"SupportsCobalt"`
|
SupportsCobalt bool `json:"SupportsCobalt"`
|
||||||
SupportsLocks bool `json:"SupportsLocks"`
|
SupportsLocks bool `json:"SupportsLocks"`
|
||||||
SupportsExtendedLockLength bool `json:"SupportsExtendedLockLength"`
|
SupportsExtendedLockLength bool `json:"SupportsExtendedLockLength"`
|
||||||
SupportsGetLock bool `json:"SupportsGetLock"`
|
SupportsGetLock bool `json:"SupportsGetLock"`
|
||||||
SupportsDelete bool `json:"SupportsDelete"`
|
SupportsDelete bool `json:"SupportsDelete"`
|
||||||
SupportsRename bool `json:"SupportsRename"`
|
SupportsRename bool `json:"SupportsRename"`
|
||||||
SupportsRenameRelativeToFolder bool `json:"SupportsRenameRelativeToFolder"`
|
SupportsRenameRelativeToFolder bool `json:"SupportsRenameRelativeToFolder"`
|
||||||
SupportsFolders bool `json:"SupportsFolders"`
|
SupportsFolders bool `json:"SupportsFolders"`
|
||||||
SupportsScenarios []string `json:"SupportsScenarios"`
|
SupportsScenarios []string `json:"SupportsScenarios"`
|
||||||
LastModifiedTime string `json:"LastModifiedTime"`
|
LastModifiedTime string `json:"LastModifiedTime"`
|
||||||
IsAnonymousUser bool `json:"IsAnonymousUser"`
|
IsAnonymousUser bool `json:"IsAnonymousUser"`
|
||||||
TimeZone string `json:"TimeZone"`
|
TimeZone string `json:"TimeZone"`
|
||||||
CloseUrl string `json:"CloseUrl,omitempty"`
|
CloseUrl string `json:"CloseUrl,omitempty"`
|
||||||
EditUrl string `json:"EditUrl,omitempty"`
|
EditUrl string `json:"EditUrl,omitempty"`
|
||||||
ViewUrl string `json:"ViewUrl,omitempty"`
|
ViewUrl string `json:"ViewUrl,omitempty"`
|
||||||
FileSharingUrl string `json:"FileSharingUrl,omitempty"`
|
FileSharingUrl string `json:"FileSharingUrl,omitempty"`
|
||||||
DownloadUrl string `json:"DownloadUrl,omitempty"`
|
DownloadUrl string `json:"DownloadUrl,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// WOPIPutFileResponse represents the response to WOPI PutFile request
|
// WOPIPutFileResponse represents the response to WOPI PutFile request
|
||||||
|
|||||||
Reference in New Issue
Block a user