mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-25 07:16:46 +01:00
19 lines
276 B
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"`
|
|
}
|