Files
jx-callback/business/model/error_code.go
suyl c650ae418d a
2021-06-30 18:59:51 +08:00

23 lines
476 B
Go
Raw 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
ErrCodeOpenAPIParamErrNormal = "1000" //api非通用参数错误
)
var (
ErrTokenIsInvalid = errors.New("token过期或无效请重新登录")
)