mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-02 23:03:57 +08:00
24 lines
821 B
Go
24 lines
821 B
Go
package errcode
|
|
|
|
import (
|
|
"embed"
|
|
|
|
"github.com/GoYoko/web"
|
|
)
|
|
|
|
//go:embed locale.*.toml
|
|
var LocalFS embed.FS
|
|
|
|
var (
|
|
ErrPermission = web.NewBadRequestErr("err-permission")
|
|
ErrUserNotFound = web.NewBadRequestErr("err-user-not-found")
|
|
ErrPassword = web.NewBadRequestErr("err-password")
|
|
ErrInviteCodeInvalid = web.NewBadRequestErr("err-invite-code-invalid")
|
|
ErrEmailInvalid = web.NewBadRequestErr("err-email-invalid")
|
|
ErrOAuthStateInvalid = web.NewBadRequestErr("err-oauth-state-invalid")
|
|
ErrUnsupportedPlatform = web.NewBadRequestErr("err-unsupported-platform")
|
|
ErrNotInvited = web.NewBadRequestErr("err-not-invited")
|
|
ErrDingtalkNotEnabled = web.NewBadRequestErr("err-dingtalk-not-enabled")
|
|
ErrCustomNotEnabled = web.NewBadRequestErr("err-custom-not-enabled")
|
|
)
|