mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2024-11-10 18:06:25 +00:00
185 lines
3.5 KiB
Go
185 lines
3.5 KiB
Go
package types
|
|
|
|
//Meta
|
|
type Meta struct {
|
|
Status string `json:"status"`
|
|
Statuscode int `json:"statuscode"`
|
|
Message string `json:"message"`
|
|
Totalitems string `json:"totalitems"`
|
|
Itemsperpage string `json:"itemsperpage"`
|
|
}
|
|
|
|
//ErrorResponse
|
|
type ErrorResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data []interface{} `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
//UserListResponse
|
|
type UserListResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data struct {
|
|
Users []string `json:"users"`
|
|
} `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
type UserListDetailsResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data struct {
|
|
Users map[string]UserDetails `json:"users"`
|
|
} `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
//UserResponse
|
|
type UserResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data UserDetails `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
//BaseResponse
|
|
type BaseResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data []string `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
//GroupListResponse
|
|
type GroupListResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data struct {
|
|
Groups []string `json:"groups"`
|
|
} `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
//GroupListDetailsResponse
|
|
type GroupListDetailsResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data struct {
|
|
Groups []Group `json:"groups"`
|
|
} `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
//AppListResponse
|
|
type AppListResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data struct {
|
|
Apps []string `json:"apps"`
|
|
} `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
//AppResponse
|
|
type AppResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data App `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
type AppConfigResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data struct {
|
|
Data []string `json:"data"`
|
|
} `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
type AppcConfigValueResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data struct {
|
|
Data string `json:"data"`
|
|
} `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
//CapabilitiesResponse
|
|
type CapabilitiesResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data struct {
|
|
Version Version `json:"version"`
|
|
Capabilities Capabilities `json:"capabilities"`
|
|
} `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
type Version struct {
|
|
Major int `json:"major"`
|
|
Minor int `json:"minor"`
|
|
Micro int `json:"micro"`
|
|
String string `json:"string"`
|
|
Edition string `json:"edition"`
|
|
}
|
|
|
|
type MonitoringResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data Monitoring `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
type SharesListResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data []Share `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
type SharesResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data Share `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
type GroupFoldersListResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data map[string]GroupFolderBadFormatIDAndGroups `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
type GroupFoldersCreateResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data GroupFolderBadFormatIDAndGroups `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
type GroupFoldersResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data GroupFolderBadFormatGroups `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
type NotificationsListResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data []Notification `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
type NotificationResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data Notification `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|