This commit is contained in:
oneao committed 2026-04-19 21:30:51 +08:00
1 parent b6415c0d65
commit 89aaef1d6b
29 files changed
+1118 -277

No files matched your search

@@ -5,6 +5,8 @@ import (
"allapp-go/internal/config"
"allapp-go/pkg/db"
"allapp-go/pkg/logger"
"allapp-go/pkg/s3store"
"allapp-go/pkg/wechat"
"github.com/jackc/pgx/v5/pgxpool"
)
@@ -27,6 +29,9 @@ func NewApp() (*App, error) {
// 日志
boots.InitLogger(cfg)
// S3
s3store.NewS3Client(cfg)
// 数据库
pgsql, err := boots.InitPgsql(cfg)
if err != nil {
@@ -38,6 +43,7 @@ func NewApp() (*App, error) {
// 其他组件
boots.InitUniqueId(cfg)
boots.InitJwt(cfg)
wechat.Init(cfg.Wechat.AppId, cfg.Wechat.AppSecret)
return &App{
Config: cfg,