cic-custodial/internal/api/types.go

20 lines
281 B
Go
Raw Permalink Normal View History

2022-11-30 10:51:24 +01:00
package api
import "errors"
var (
ErrInvalidJSON = errors.New("Invalid JSON structure.")
)
type H map[string]any
type OkResp struct {
Ok bool `json:"ok"`
Result H `json:"result"`
2022-11-30 10:51:24 +01:00
}
type ErrResp struct {
Ok bool `json:"ok"`
Message string `json:"message"`
2022-11-30 10:51:24 +01:00
}