Skip to content

Commit

Permalink
业务错误代码返回
Browse files Browse the repository at this point in the history
业务错误代码返回
  • Loading branch information
canghai908 authored Mar 14, 2019
1 parent 3c09cf4 commit a096652
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 @@ -18,7 +18,7 @@ type Response struct {

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 a096652

Please sign in to comment.