2018-07-05 10:50:56 +00:00
|
|
|
package types
|
|
|
|
|
2018-07-30 08:18:54 +00:00
|
|
|
//Meta
|
2018-07-24 18:26:12 +00:00
|
|
|
type Meta struct {
|
|
|
|
Status string `json:"status"`
|
|
|
|
Statuscode int `json:"statuscode"`
|
|
|
|
Message string `json:"message"`
|
|
|
|
Totalitems string `json:"totalitems"`
|
|
|
|
Itemsperpage string `json:"itemsperpage"`
|
|
|
|
}
|
|
|
|
|
2018-07-30 08:18:54 +00:00
|
|
|
//ErrorResponse
|
2018-07-05 10:50:56 +00:00
|
|
|
type ErrorResponse struct {
|
|
|
|
Ocs struct {
|
2018-07-24 18:26:12 +00:00
|
|
|
Meta Meta `json:"meta"`
|
2018-07-05 10:50:56 +00:00
|
|
|
Data []interface{} `json:"data"`
|
|
|
|
} `json:"ocs"`
|
|
|
|
}
|
|
|
|
|
2018-07-30 08:18:54 +00:00
|
|
|
//UserListResponse
|
2018-07-05 10:50:56 +00:00
|
|
|
type UserListResponse struct {
|
|
|
|
Ocs struct {
|
2018-07-24 18:26:12 +00:00
|
|
|
Meta Meta `json:"meta"`
|
2018-07-05 10:50:56 +00:00
|
|
|
Data struct {
|
|
|
|
Users []string `json:"users"`
|
|
|
|
} `json:"data"`
|
|
|
|
} `json:"ocs"`
|
|
|
|
}
|
|
|
|
|
2018-07-30 08:18:54 +00:00
|
|
|
//UserResponse
|
2018-07-05 10:50:56 +00:00
|
|
|
type UserResponse struct {
|
|
|
|
Ocs struct {
|
2018-07-24 18:26:12 +00:00
|
|
|
Meta Meta `json:"meta"`
|
2018-07-05 10:50:56 +00:00
|
|
|
Data User `json:"data"`
|
|
|
|
} `json:"ocs"`
|
|
|
|
}
|
|
|
|
|
2018-07-30 08:18:54 +00:00
|
|
|
//BaseResponse
|
2018-07-09 10:53:53 +00:00
|
|
|
type BaseResponse struct {
|
2018-07-05 14:15:51 +00:00
|
|
|
Ocs struct {
|
2018-07-24 18:26:12 +00:00
|
|
|
Meta Meta `json:"meta"`
|
2018-07-05 14:15:51 +00:00
|
|
|
Data []string `json:"data"`
|
|
|
|
} `json:"ocs"`
|
|
|
|
}
|
|
|
|
|
2018-07-30 08:18:54 +00:00
|
|
|
//GroupListResponse
|
2018-07-05 10:50:56 +00:00
|
|
|
type GroupListResponse struct {
|
|
|
|
Ocs struct {
|
2018-07-24 18:26:12 +00:00
|
|
|
Meta Meta `json:"meta"`
|
2018-07-05 10:50:56 +00:00
|
|
|
Data struct {
|
|
|
|
Groups []string `json:"groups"`
|
|
|
|
} `json:"data"`
|
|
|
|
} `json:"ocs"`
|
|
|
|
}
|
|
|
|
|
2018-07-30 08:18:54 +00:00
|
|
|
//AppListResponse
|
2018-07-24 18:26:12 +00:00
|
|
|
type AppListResponse struct {
|
|
|
|
Ocs struct {
|
|
|
|
Meta Meta `json:"meta"`
|
|
|
|
Data struct {
|
|
|
|
Apps []string `json:"apps"`
|
|
|
|
} `json:"data"`
|
|
|
|
} `json:"ocs"`
|
|
|
|
}
|
|
|
|
|
2018-07-30 08:18:54 +00:00
|
|
|
//AppResponse
|
2018-07-24 18:26:12 +00:00
|
|
|
type AppResponse struct {
|
|
|
|
Ocs struct {
|
|
|
|
Meta Meta `json:"meta"`
|
|
|
|
Data App `json:"data"`
|
|
|
|
} `json:"ocs"`
|
|
|
|
}
|
|
|
|
|
2018-07-30 08:18:54 +00:00
|
|
|
//CapabilitiesResponse
|
2018-07-05 10:50:56 +00:00
|
|
|
type CapabilitiesResponse struct {
|
|
|
|
Ocs struct {
|
2018-07-24 18:26:12 +00:00
|
|
|
Meta Meta `json:"meta"`
|
2018-07-05 10:50:56 +00:00
|
|
|
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"`
|
|
|
|
}
|