From 649cf50893b8eee34804e1139b54de33116f5cbb Mon Sep 17 00:00:00 2001 From: hongming Date: Thu, 31 May 2018 14:08:24 +0800 Subject: [PATCH] add response struct --- pkg/constants/common.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkg/constants/common.go b/pkg/constants/common.go index 9ca029530..745894c5a 100644 --- a/pkg/constants/common.go +++ b/pkg/constants/common.go @@ -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"