cic-custodial/internal/api/types.go

19 lines
276 B
Go

package api
const (
INTERNAL_ERROR = "ERR_INTERNAL"
VALIDATION_ERROR = "ERR_VALIDATE"
)
type H map[string]any
type okResp struct {
Ok bool `json:"ok"`
Result H `json:"result"`
}
type errResp struct {
Ok bool `json:"ok"`
Code string `json:"errorCode"`
}