add: user auth accomplished
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package utils
|
||||
|
||||
type ErrorResponse struct {
|
||||
Code int `json:"code"`
|
||||
Msg string `json:"msg"`
|
||||
}
|
||||
|
||||
func NewErrorResp(code int, msg error) *ErrorResponse {
|
||||
return &ErrorResponse{
|
||||
Code: code,
|
||||
Msg: msg.Error(),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user