Files
jx-callback/business/model/error_code.go
gazebo 050da79527 + jxutils/jsonerr用于JSON描述的错误
+ ErrCodeJsonFormat
- ActStoreSkuParam2Model中判断活动信息是否有交叉,并返回交叉错误信息
2019-07-09 09:09:13 +08:00

20 lines
423 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"
ErrCodeUserNotExist = "-3"
ErrCodeUserAlreadyExist = "-4"
ErrCodeJsonFormat = "-10" // 这个错误号表示description中的是一个json对象不是错误文本
)
var (
ErrTokenIsInvalid = errors.New("token过期或无效请重新登录")
)