Files
jx-callback/business/model/error_code.go
2021-07-01 11:12:06 +08:00

24 lines
544 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package model
import "errors"
const (
ErrorCodeIgnore = "ignore"
ErrCodeSuccess = "0"
ErrCodeGeneralFailed = "-1"
ErrCodeTokenIsInvalid = "-2"
ErrCodeJsonSyncErr = "-105"
ErrCodeOpenAPIParamErrMethod = "-1001" //参数错误method
ErrCodeOpenAPIParamErrTimeStamp = "-1002" //参数错误timestamp
ErrCodeOpenAPIParamErrSign = "-1003" //参数错误sign
ErrCodeOpenAPIParamErrNormal = "-1000" //api非通用参数错误
)
var (
ErrTokenIsInvalid = errors.New("token过期或无效请重新登录")
)