Skip to content

Commit

Permalink
fix error code reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddycjy committed Aug 18, 2019
2 parents 337d1ef + a096652 commit 3095445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Response struct {
// Response setting gin.JSON
func (g *Gin) Response(httpCode, errCode int, data interface{}) {
g.C.JSON(httpCode, Response{
Code: httpCode,
Code: errCode,
Msg: e.GetMsg(errCode),
Data: data,
})
Expand Down

0 comments on commit 3095445

Please sign in to comment.