Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaomingqiang committed Dec 12, 2020
1 parent aa43785 commit c37c38e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/core/response/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
)

const (
ErrCodeIO = -1
ErrCodeNative = -1
ErrCodeOk = 0
ErrCodeAppTicketInvalid = 10012
ErrCodeAccessTokenInvalid = 99991671
Expand Down Expand Up @@ -52,14 +52,14 @@ type Error struct {

func NewErrorOfInvalidResp(msg string) *Error {
return &Error{
Code: ErrCodeIO,
Code: ErrCodeNative,
Msg: msg,
}
}

func NewError(err error) *Error {
return &Error{
Code: ErrCodeIO,
Code: ErrCodeNative,
Msg: err.Error(),
}
}
Expand Down

0 comments on commit c37c38e

Please sign in to comment.