cic-custodial/internal/api/types.go

19 lines
276 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"
2022-11-30 10:51:24 +01:00
)
2023-02-02 13:29:43 +01:00
type H map[string]any
2022-11-30 10:51:24 +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
}
type errResp struct {
2023-02-02 13:29:43 +01:00
Ok bool `json:"ok"`
Code string `json:"errorCode"`
2022-11-30 10:51:24 +01:00
}