23 lines
745 B
Go
23 lines
745 B
Go
package model
|
||
|
||
import "errors"
|
||
|
||
const (
|
||
ErrorCodeIgnore = "ignore"
|
||
|
||
ErrCodeSuccess = "0"
|
||
ErrCodeGeneralFailed = "-1"
|
||
ErrCodeTokenIsInvalid = "-2"
|
||
ErrCodeUserNotExist = "-3"
|
||
ErrCodeUserAlreadyExist = "-4" // 用户已经存在错,但不能成功登录
|
||
|
||
ErrCodeJsonActSkuConflict = "-101" // 这个错误号表示description中的是一个json对象,不是错误文本
|
||
ErrCodeJsonActPriceTooLarger = "-102" // 这个错误号表示description中的是一个json对象,不是错误文本
|
||
ErrCodeJsonActEarningPriceIsZero = "-103"
|
||
ErrCodeJsonUserAlreadyExist = "-104" // 用户已经存在错,且能成功登录
|
||
)
|
||
|
||
var (
|
||
ErrTokenIsInvalid = errors.New("token过期或无效,请重新登录")
|
||
)
|