Port over API bits from #962 (#965)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2021-02-25 12:39:51 -05:00
1 parent 3ab8bb03de
commit ea23737258
18 files changed
+101 -407

No files matched your search

+3 -8
View File
@@ -1,8 +1,6 @@
package api
import (
"bytes"
"github.com/fatih/structs"
)
@@ -12,17 +10,14 @@ func init() {
type GenericResult interface {
GetItem() interface{}
GetResponseBody() *bytes.Buffer
GetResponseMap() map[string]interface{}
GetResponse() *Response
}
type GenericDeleteResult interface {
GetResponseBody() *bytes.Buffer
GetResponseMap() map[string]interface{}
GetResponse() *Response
}
type GenericListResult interface {
GetItems() interface{}
GetResponseBody() *bytes.Buffer
GetResponseMap() map[string]interface{}
GetResponse() *Response
}