app-cloudep-member-server/pkg/domain/errors.go

34 lines
816 B
Go
Raw Normal View History

2024-12-30 03:58:14 +00:00
package domain
import "code.30cm.net/digimon/library-go/errs"
// Verify Error Code
const (
FailedToVerifyGoogle errs.ErrorCode = iota + 1
FailedToVerifyGoogleTimeout
FailedToVerifyGoogleHTTPCode
FailedToVerifyGoogleTokenExpired
FailedToVerifyGoogleInvalidAudience
FailedToVerifyLine
)
// PWS Error Code
const (
HashPasswordErrorCode = 10 + iota
InsertAccountErrorCode
BindingUserTabletErrorCode
FailedToFindAccountErrorCode
FailedToBindAccountErrorCode
FailedToIncAccountErrorCode
FailedFindUIDByLoginIDErrorCode
FailedFindOneByAccountErrorCode
FailedToUpdatePasswordErrorCode
FailedToFindUserErrorCode
FailedToUpdateUserErrorCode
FailedToUpdateUserStatusErrorCode
FailedToGetUserInfoErrorCode
FailedToGetVerifyCodeErrorCode
FailedToGetCodeOnRedisErrorCode
FailedToGetCodeCorrectErrorCode
)