add response struct

This commit is contained in:
hongming
2018-05-31 14:08:24 +08:00
parent 9d6a7a52bc
commit 649cf50893

View File

@@ -16,13 +16,15 @@ limitations under the License.
package constants
type ResultMessage struct {
Data interface{} `json:"data"`
type MessageResponse struct {
Message string `json:"message"`
}
const APIVERSION = "v1alpha"
type PageableResponse struct {
Items []interface{} `json:"items"`
TotalCount int `json:"total_count"`
}
const APIVERSION = "v1alpha1"
const KIND = "kubesphere"