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
LoadPhoneCode will return send code.
No description provided by the author
NewVerifyPhone will craete new VerifyPhone.
# Constants
PhoneCodeTypeLogin is phone code type to login.
PhoneCodeTypeVerify is phone 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.
Redis will return redis connection.
SendLoginSmsH is http handler*
*
* @api {GET} /pub/sendLoginSms Send Login Sms
* @apiName SendLoginSms
* @apiGroup User
*
*
* @apiParam {String} phone the phone 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:
* phone=xx
*
*
* @apiSuccessExample {JSON} Success-Response:
* {
* "code": 0,
* "data": "OK"
* }
* @apiSuccessExample {JSON} Frequently-Response:
* {
* "code": 1600,
* "after": 10000,
* }
*
*/.
SendSms will send message to phone.
SendVerifySmsH is http handler*
*
* @api {GET} /usr/sendVerifySms Send Verify Sms
* @apiName SendVerifySms
* @apiGroup User
*
*
* @apiParam {String} phone the phone 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:
* phone=xx
*
*
* @apiSuccessExample {JSON} Success-Response:
* {
* "code": 0,
* "data": "OK"
* }
* @apiSuccessExample {JSON} Frequently-Response:
* {
* "code": 1600,
* "after": 10000,
* }
*
*/.
# Structs
VerifyPhone is verify phone impl.