cic-custodial/internal/api/types.go

21 lines
351 B
Go
Raw Normal View History

2022-11-30 10:51:24 +01:00
package api
const (
INTERNAL_ERROR = "ERR_INTERNAL"
VALIDATION_ERROR = "ERR_VALIDATE"
DUPLICATE_ERROR = "ERR_DUPLICATE"
2022-11-30 10:51:24 +01:00
)
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"`
Code string `json:"errorCode"`
Message string `json:"message"`
2022-11-30 10:51:24 +01:00
}