mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2024-11-25 01:56:23 +00:00
81 lines
1.5 KiB
Go
81 lines
1.5 KiB
Go
package types
|
|
|
|
type Meta struct {
|
|
Status string `json:"status"`
|
|
Statuscode int `json:"statuscode"`
|
|
Message string `json:"message"`
|
|
Totalitems string `json:"totalitems"`
|
|
Itemsperpage string `json:"itemsperpage"`
|
|
}
|
|
|
|
type ErrorResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data []interface{} `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
type UserListResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data struct {
|
|
Users []string `json:"users"`
|
|
} `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
type UserResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data User `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
type BaseResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data []string `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
type GroupListResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data struct {
|
|
Groups []string `json:"groups"`
|
|
} `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
type AppListResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data struct {
|
|
Apps []string `json:"apps"`
|
|
} `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
type AppResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data App `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|
|
|
|
type CapabilitiesResponse struct {
|
|
Ocs struct {
|
|
Meta Meta `json:"meta"`
|
|
Data struct {
|
|
Version struct {
|
|
Major int `json:"major"`
|
|
Minor int `json:"minor"`
|
|
Micro int `json:"micro"`
|
|
String string `json:"string"`
|
|
Edition string `json:"edition"`
|
|
} `json:"version"`
|
|
Capabilities Capabilities `json:"capabilities"`
|
|
} `json:"data"`
|
|
} `json:"ocs"`
|
|
}
|