Files
threshold/api/util.go
T

29 lines
493 B
Go

package api
import (
"bytes"
"github.com/fatih/structs"
)
func init() {
structs.DefaultTagName = "json"
}
type GenericResult interface {
GetItem() interface{}
GetResponseBody() *bytes.Buffer
GetResponseMap() map[string]interface{}
}
type GenericDeleteResult interface {
GetResponseBody() *bytes.Buffer
GetResponseMap() map[string]interface{}
}
type GenericListResult interface {
GetItems() interface{}
GetResponseBody() *bytes.Buffer
GetResponseMap() map[string]interface{}
}