consts

package
v1.4.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2023 License: GPL-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AuthTypeEmail  = "email"
	AuthTypePhone  = "phone"
	AuthTypeWechat = "wechat"
)
View Source
const (
	VerifyCodeKeyPrefix = "verify:"
	OAuthUrl            = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%s&grant_type=authorization_code"
)

Variables

View Source
var (
	ErrNotFound        = mon.ErrNotFound
	ErrInvalidObjectId = errors.New("invalid objectId")
)
View Source
var (
	ErrCannotDeleteObject = status.Error(10000, "can not delete object")
	ErrNoSuchUser         = status.Error(10001, "no such user")
	ErrWrongWechatCode    = status.Error(10002, "wrong wechat code")
	ErrInvalidArgument    = status.Error(10003, "invalid argument")
	ErrWrongPassword      = status.Error(10004, "wrong password")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL