mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-22 06:16:45 +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"`
|
|
}
|