Files
threshold/api/util.go
T

28 lines
493 B
Go
Raw Normal View History

2020-05-04 10:58:20 -04:00
package api
import (
"bytes"
"github.com/fatih/structs"
)
2020-05-04 23:02:18 -04:00
func init() {
structs.DefaultTagName = "json"
}
type GenericResult interface {
GetItem() interface{}
GetResponseBody() *bytes.Buffer
GetResponseMap() map[string]interface{}
2020-05-04 23:02:18 -04:00
}
type GenericDeleteResult interface {
GetResponseBody() *bytes.Buffer
GetResponseMap() map[string]interface{}
2020-05-04 10:58:20 -04:00
}
2020-05-04 23:02:18 -04:00
type GenericListResult interface {
GetItems() interface{}
GetResponseBody() *bytes.Buffer
GetResponseMap() map[string]interface{}
2020-05-04 23:02:18 -04:00
}