init: taotie-api 项目初始化

This commit is contained in:
2026-05-16 00:14:19 +08:00
commit eb15ef4b87
33 changed files with 1746 additions and 0 deletions

29
wire.go Normal file
View File

@@ -0,0 +1,29 @@
//go:build wireinject
// +build wireinject
package main
import (
"taotie-api/api"
"taotie-api/core"
"taotie-api/repo"
"taotie-api/service"
"github.com/gin-gonic/gin"
"github.com/google/wire"
)
func InitApp() (*gin.Engine, error) {
wire.Build(
core.NewConfiguration,
repo.NewMongoDb,
api.RouterProd,
service.ServiceProd,
repo.RepoProd,
)
return nil, nil
}