Documentation ¶
Index ¶
Constants ¶
View Source
const ( SuccessCode = 0 FalseCode = 10000 ServiceErrCode = 10001 ParamErrCode = 10002 UserAlreadyExistErrCode = 10003 AuthorizationFailedErrCode = 10004 UsernameOrPasswordNilErrCode = 10005 UserNotExistErrCode = 10006 PasswordIncorrectErrCode = 10007 TokenEmptyErrCode = 10008 LoginFailedErrCode = 10009 VideoExceedMaxSizeErrCode = 10010 )
Variables ¶
View Source
var ( Success = NewErrNo(SuccessCode, "Success") ServiceErr = NewErrNo(ServiceErrCode, "Service is unable to start successfully") ParamErr = NewErrNo(ParamErrCode, "Wrong Parameter has been given") UserAlreadyExistErr = NewErrNo(UserAlreadyExistErrCode, "用户已存在") AuthorizationFailedErr = NewErrNo(AuthorizationFailedErrCode, "Authorization failed") UsernameOrPasswordNilErr = NewErrNo(UsernameOrPasswordNilErrCode, "用户名或密码不能为空") UserNotExistErr = NewErrNo(UserNotExistErrCode, "该用户不存在") PasswordIncorrectErr = NewErrNo(PasswordIncorrectErrCode, "密码不正确") LoginFailedErr = NewErrNo(LoginFailedErrCode, "用户名或密码不正确") TokenEmptyErr = NewErrNo(TokenEmptyErrCode, "token 为空") VideoExceedMaxSizeErr = NewErrNo(VideoExceedMaxSizeErrCode, "单个视频不得超过 128 MB") )
Functions ¶
This section is empty.
Types ¶
type ErrNo ¶
func (ErrNo) WithMessage ¶
Click to show internal directories.
Click to hide internal directories.