diff --git a/pkg/share/manager/nextcloud/nextcloud.go b/pkg/share/manager/nextcloud/nextcloud.go index 6d5f3dc9285..3b1de3d1e57 100644 --- a/pkg/share/manager/nextcloud/nextcloud.go +++ b/pkg/share/manager/nextcloud/nextcloud.go @@ -61,12 +61,14 @@ type Action struct { argS string } +// GranteeAltMap is an alternative map to JSON-unmarshal a Grantee // Grantees are hard to unmarshal, so unmarshalling into a map[string]interface{} first, // see also https://github.com/pondersource/sciencemesh-nextcloud/issues/27 type GranteeAltMap struct { ID *provider.Grantee_UserId `json:"id"` } +// ShareAltMap is an alternative map to JSON-unmarshal a Share type ShareAltMap struct { ID *collaboration.ShareId `json:"id"` ResourceID *provider.ResourceId `json:"resource_id"` @@ -78,6 +80,7 @@ type ShareAltMap struct { Mtime *types.Timestamp `json:"mtime"` } +// ReceivedShareAltMap is an alternative map to JSON-unmarshal a ReceivedShare type ReceivedShareAltMap struct { Share *ShareAltMap `json:"share"` State collaboration.ShareState `json:"state"`