Skip to content

Commit

Permalink
Merge branch 'canghai908-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
eddycjy committed Aug 18, 2019
2 parents 337d1ef + 3095445 commit 648b2c7
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 648b2c7

Please sign in to comment.