Files
threshold/api/util.go
T

23 lines
336 B
Go
Raw Normal View History

2020-05-04 10:58:20 -04:00
package api
import (
"github.com/fatih/structs"
)
2020-05-04 23:02:18 -04:00
func init() {
structs.DefaultTagName = "json"
}
type GenericResult interface {
GetItem() interface{}
2021-02-25 12:39:51 -05:00
GetResponse() *Response
2020-05-04 23:02:18 -04:00
}
type GenericDeleteResult interface {
2021-02-25 12:39:51 -05:00
GetResponse() *Response
2020-05-04 10:58:20 -04:00
}
2020-05-04 23:02:18 -04:00
type GenericListResult interface {
GetItems() interface{}
2021-02-25 12:39:51 -05:00
GetResponse() *Response
2020-05-04 23:02:18 -04:00
}