20 lines
966 B
Go
20 lines
966 B
Go
package domain
|
||
|
||
import "errors"
|
||
|
||
var (
|
||
ErrUsernameInvalid = errors.New("username invalid")
|
||
ErrUsernameOccupied = errors.New("username occupied")
|
||
ErrUsernameNotOccupied = errors.New("username not occupied")
|
||
ErrPhoneNotOccupied = errors.New("phone not occupied")
|
||
ErrFirstNameInvalid = errors.New("first name invalid")
|
||
ErrAboutTooLong = errors.New("about too long")
|
||
ErrUserNotFound = errors.New("user not found")
|
||
ErrUserSendRestricted = errors.New("user send restricted")
|
||
// ErrPremiumRequired 表示该操作仅限有效会员(PREMIUM_ACCOUNT_REQUIRED)。
|
||
ErrPremiumRequired = errors.New("premium account required")
|
||
// ErrPremiumBotUnsupported 表示 bot 账号不可被授予会员(官方语义)。
|
||
ErrPremiumBotUnsupported = errors.New("bot accounts cannot be premium")
|
||
// ErrBirthdayInvalid 表示生日的月/日/年不在合法范围(BIRTHDAY_INVALID)。
|
||
ErrBirthdayInvalid = errors.New("birthday invalid")
|
||
)
|