🎨 complete SMS login function

This commit is contained in:
landaiqing
2024-08-14 00:11:32 +08:00
parent 48c5aeb0f4
commit 368adadf52
38 changed files with 687 additions and 232 deletions

11
main.go
View File

@@ -9,11 +9,12 @@ import (
func main() {
// 初始化配置
core.InitConfig() // 读取配置文件
core.InitLogger() // 初始化日志
core.InitGorm() // 初始化数据库
core.InitRedis() // 初始化redis
core.InitCaptcha() // 初始化验证码
core.InitConfig() // 读取配置文件
core.InitLogger() // 初始化日志
core.InitGorm() // 初始化数据库
core.InitRedis() // 初始化redis
core.InitCaptcha() // 初始化验证码
core.InitIDGenerator() // 初始化ID生成器
// 命令行参数绑定
option := cmd.Parse()
if cmd.IsStopWeb(&option) {