youtu_ecpm/main.go
2025-01-20 00:14:43 +08:00

25 lines
550 B
Go

package main
import (
"gitea.youtukeji.com.cn/xiabin/youtu_ecpm/dao/query"
"gitea.youtukeji.com.cn/xiabin/youtu_ecpm/pkg/config"
"gitea.youtukeji.com.cn/xiabin/youtu_ecpm/pkg/db"
"gitea.youtukeji.com.cn/xiabin/youtu_ecpm/pkg/log"
)
func main() {
// 初始化日志
zapLog := log.NewLog(config.GetLogFormat(), config.GetAppEnv(), config.GetLogLevel(), config.GetLogPath())
// 初始化数据库
q := query.Use(db.Db)
app, _, err := wireApp(zapLog, q)
if err != nil {
zapLog.Sugar().Fatal("运行失败", err)
return
}
app.Run()
}