added template for new golang backend
This commit is contained in:
14
server/common/ginresp/apiError.go
Normal file
14
server/common/ginresp/apiError.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package ginresp
|
||||
|
||||
type sendAPIError struct {
|
||||
Success bool `json:"success"`
|
||||
Error int `json:"error"`
|
||||
ErrorHighlight int `json:"errhighlight"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
type internAPIError struct {
|
||||
Success bool `json:"success"`
|
||||
ErrorID int `json:"errid,omitempty"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
Reference in New Issue
Block a user