SimpleCloudNotifier/scnserver/api/ginresp/apiError.go

17 lines
452 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-11-30 21:51:48 +01:00
Success bool `json:"success"`
Error int `json:"error"`
ErrorHighlight int `json:"errhighlight"`
Message string `json:"message"`
RawError *string `json:"errorObj,omitempty"`
Trace string `json:"traceObj,omitempty"`
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"`
}