SimpleCloudNotifier/scnserver/api/ginresp/apiError.go

24 lines
633 B
Go
Raw Normal View History

2022-11-13 19:17:07 +01:00
package ginresp
2022-11-18 21:25:40 +01:00
type apiError struct {
2022-12-23 20:27:21 +01:00
Success bool `json:"success"`
Error int `json:"error"`
ErrorHighlight int `json:"errhighlight"`
Message string `json:"message"`
}
type extendedAPIError struct {
Success bool `json:"success"`
Error int `json:"error"`
ErrorHighlight int `json:"errhighlight"`
Message string `json:"message"`
RawError *string `json:"__error"`
Trace []string `json:"__trace"`
2022-11-13 19:17:07 +01:00
}
2022-11-20 01:28:32 +01:00
type compatAPIError struct {
Success bool `json:"success"`
ErrorID int `json:"errid,omitempty"`
Message string `json:"message"`
}