后端重构

This commit is contained in:
Yvan
2026-01-08 17:41:41 +08:00
parent fad3767b79
commit 8800c069d9
47 changed files with 3135 additions and 978 deletions
+11 -1
View File
@@ -1,6 +1,9 @@
package conf
import "github.com/google/wire"
import (
"github.com/google/wire"
"go.uber.org/zap"
)
// ProviderSet is conf providers.
var ProviderSet = wire.NewSet(
@@ -10,8 +13,15 @@ var ProviderSet = wire.NewSet(
ProvideCaptcha,
ProvideSystem,
ProvideUseStrictAuth,
ProvideZapLogger,
)
// ProvideZapLogger 提供zap日志实例
func ProvideZapLogger() *zap.Logger {
logger, _ := zap.NewProduction()
return logger
}
// ProvideServer 提供Server配置
func ProvideServer(c *Bootstrap) *Server {
return c.Server