Refactoring

This commit is contained in:
2022-12-20 13:55:09 +01:00
parent f7675be834
commit 8582674b44
20 changed files with 17 additions and 19 deletions
+16
View File
@@ -0,0 +1,16 @@
package ginresp
type apiError struct {
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"`
}
type compatAPIError struct {
Success bool `json:"success"`
ErrorID int `json:"errid,omitempty"`
Message string `json:"message"`
}