package
0.0.0-20241203155450-2f254e5b2c5f
Repository: https://github.com/wfunc/go.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
LoadEmailCode will return send code.
No description provided by the author
No description provided by the author
NewVerifyEmail will craete new VerifyEmail.

# Constants

EmailCodeTypeLogin is email code type to login.
EmailCodeTypeVerify is email code type to verify.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
Default code length is 6.
Default doesn't ignore case.
Redis will return redis connection.
SendEmail will send message to email.
SendLoginEmailH is http handler* * * @api {GET} /pub/sendLoginEmail Send Login Email * @apiName SendLoginEmail * @apiGroup User * * * @apiParam {String} email the email number * @apiParam {String} [captcha_id] the captcha id * @apiParam {String} [captcha_code] the captcha code * @apiSuccess (200) {Number} code the respnose code, see the common define, * @apiSuccess (200) {Number} after the after time when call frequently * * * @apiParamExample {Query} Request-Example: * email=xx * * * @apiSuccessExample {JSON} Success-Response: * { * "code": 0, * "data": "OK" * } * @apiSuccessExample {JSON} Frequently-Response: * { * "code": 1600, * "after": 10000, * } * */.
SendVerifyEmailH is http handler* * * @api {GET} /usr/sendVerifyEmail Send Verify Email * @apiName SendVerifyEmail * @apiGroup User * * * @apiParam {String} email the email number * @apiParam {String} [captcha_id] the captcha id * @apiParam {String} [captcha_code] the captcha code * @apiSuccess (200) {Number} code the respnose code, see the common define, * @apiSuccess (200) {Number} after the after time when call frequently * * @apiParamExample {Query} Request-Example: * email=xx * * * @apiSuccessExample {JSON} Success-Response: * { * "code": 0, * "data": "OK" * } * @apiSuccessExample {JSON} Frequently-Response: * { * "code": 1600, * "after": 10000, * } * */.

# Structs

No description provided by the author
VerifyEmail is verify email impl.