Documentation ¶
Overview ¶
- @Author: youlingdada youlingdada@163.com
- @Date: 2022-07-07 17:18:50
- @LastEditors: youlingdada cxyyxd1224721
- @LastEditTime: 2022-07-24 16:22:47
- @FilePath: \street-stall\service\email.go
- @Description:
- QQ:3367758294
- Copyright (c) 2022 by Youlingdada, All Rights Reserved.
Package service /*
Index ¶
- Variables
- func GetExpByTag(tag string) int
- func GetUserByEmail(email string) (*model.User, error)
- func GetUserById(userId uint64) (*model.User, error)
- func GetUserByPhone(phone string) (*model.User, error)
- func GetUserByUsername(username string) (*model.User, error)
- func SendEmailCode(email utils.Email, tag string) error
- func UserCheckOnlyEmail(email string) error
- func UserCheckOnlyPhone(phone string) error
- func UserCheckOnlyUsername(username string) error
- func UserUpdateEmail(user model.User, code string) error
- func UserUpdatePhone(user model.User, code string) error
- func VerifyEmailCode(email string, code, tag string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var BoothService boothService
View Source
var BoothTypeService boothTypeService
View Source
var FileService fileService
View Source
var UserService userService
View Source
var WaresService waresService
Functions ¶
func GetExpByTag ¶
func SendEmailCode ¶
*
- @description: 发送邮箱验证码
- @param {utils.Email} email 邮件信息
- @param {string} tag
- @return {*}
func VerifyEmailCode ¶
*
- @description: 验证邮验证码
- @param {string} email 邮箱
- @param {string} code 验证码
- @param {string} tag 唯一标识,用于表示邮箱验证码的作用
- @return {*} 是否验证成功
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.