SimpleCloudNotifier/server/common/ginresp/apiError.go

17 lines
446 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-13 19:17:07 +01:00
Success bool `json:"success"`
Error int `json:"error"`
ErrorHighlight int `json:"errhighlight"`
Message string `json:"message"`
2022-11-20 03:06:08 +01:00
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"`
}