mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-29 08:56:45 +01:00
21 lines
351 B
Go
21 lines
351 B
Go
package api
|
|
|
|
const (
|
|
INTERNAL_ERROR = "ERR_INTERNAL"
|
|
VALIDATION_ERROR = "ERR_VALIDATE"
|
|
DUPLICATE_ERROR = "ERR_DUPLICATE"
|
|
)
|
|
|
|
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"`
|
|
Message string `json:"message"`
|
|
}
|