syhlion / gusher.cluster

gusher plus version, support cluster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

制定統一 error response struct

syhlion opened this issue · comments

commented
ErrorResponse struct {
Code int `json:"code"`
Message string `json:"message"`
}
func (e ErrorResponse) Error() string{
return fmt.Sprintf("[%d] %s", e.Code,e.Message)
}