package errno

type Errno struct {
	Code    int
	Message string
}

func (err Errno) Error() string {
	return err.Message
}

var (
	OK                  = &Errno{Code: 0, Message: "OK"}
	InternalServerError = &Errno{Code: 10001, Message: "Internal server error"}
	ErrVoiceVerifyNotPass = &Errno{Code: 2000,Message: "声纹未通过"}
	ErrVoiceVerifyNotReq = &Errno{Code:2005,Message: "等待声纹验证"}

	ErrValidateCode  = &Errno{Code: 20000, Message: "验证码错误或已失效."}
	ErrSendEmail     = &Errno{Code: 20001, Message: "邮件发送失败."}
	ErrEmailTemplate = &Errno{Code: 20002, Message: "邮件模板不存在."}

	ErrRedEnvelopNotExist = &Errno{Code: 30001, Message: "红包不存在."}
	ErrRedEnvelopEnd      = &Errno{Code: 30002, Message: "红包已领完."}
	ErrRedEnvelopExpire   = &Errno{Code: 30003, Message: "红包已过期."}



	ErrFeeHashNotConfirm = &Errno{
		Code:    40001,
		Message: "当前hash还未确认，请稍后！",
	}
)
