package errno

var (
	// 100x 通用类型
	OK                    = &Errno{Code: 0, Message: "成功"}
	ParamsError           = &Errno{Code: 1000, Message: "参数错误"}
	AuthError             = &Errno{Code: 1001, Message: "无权访问"}
	InternalServerError   = &Errno{Code: 1002, Message: "服务器错误"}
	DatabaseError         = &Errno{Code: 1003, Message: "数据库错误"}
	TooManyRequestError   = &Errno{Code: 1004, Message: "发送了太多请求"}
	SessionError          = &Errno{Code: 1005, Message: "您的 Session 已过期"}
	NotFoundError         = &Errno{Code: 1006, Message: "Not Found"}
	ResourceNotFoundError = &Errno{Code: 1007, Message: "资源未找到"}

	// 200x auth 相关
	SocialAuthorizationError = &Errno{Code: 2000, Message: "第三方登录失败"}
	LoginError               = &Errno{Code: 2001, Message: "用户名或密码错误"}
	TokenError               = &Errno{Code: 2002, Message: "token error"}
	TokenExpireError         = &Errno{Code: 2002, Message: "token 已过期"}
	TokenRefreshError        = &Errno{Code: 2003, Message: "token 已过期(已过刷新时间)"}
	TokenInBlackListError    = &Errno{Code: 2004, Message: "token 不可使用(已加入黑名单)"}
	TokenMissingError        = &Errno{Code: 2005, Message: "token 没有找到"}

	// 300x 存储相关
	UploadError = &Errno{Code: 3000, Message: "上传失败"}

	// 500x 第三方错误
	SmsError = &Errno{Code: 5000, Message: "短信发送异常"}
)
