Files
jx-callback/business/model/error_code.go
2020-11-20 17:06:33 +08:00

28 lines
950 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"
ErrCodePoint = "1"
ErrCodeGeneralFailed = "-1"
ErrCodeTokenIsInvalid = "-2"
ErrCodeUserNotExist = "-3"
ErrCodeUserAlreadyExist = "-4" // 用户已经存在错,但不能成功登录
ErrCodeJsonActSkuConflict = "-101" // 这个错误号表示description中的是一个json对象不是错误文本
ErrCodeJsonActPriceTooLarger = "-102" // 这个错误号表示description中的是一个json对象不是错误文本
ErrCodeJsonActEarningPriceIsZero = "-103"
ErrCodeJsonUserAlreadyExist = "-104" // 用户已经存在错,且能成功登录
ErrCodeJsonSyncErr = "-105"
ErrCodeAccountBalanceNotEnough = "-201" //余额不足
ErrCodeNotAuthBindWeixin = "-202" //没有绑定微信认证方式
)
var (
ErrTokenIsInvalid = errors.New("token过期或无效请重新登录")
)