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 (
2023-02-02 13:29:43 +01:00
INTERNAL_ERROR = "ERR_INTERNAL"
VALIDATION_ERROR = "ERR_VALIDATE"
2023-02-12 14:53:53 +01:00
DUPLICATE_ERROR = "ERR_DUPLICATE"
2022-11-30 10:51:24 +01:00
)
2023-02-02 13:29:43 +01:00
type H map[string]any
2023-02-12 14:53:53 +01:00
type OkResp struct {
2023-02-02 13:29:43 +01:00
Ok bool `json:"ok"`
Result H `json:"result"`
2022-11-30 10:51:24 +01:00
}
2023-02-12 14:53:53 +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
}