add 数据库 Web框架 初步 支持

This commit is contained in:
2024-10-28 18:59:34 +08:00
parent 221f216c3d
commit 4ceb33fbf2
14 changed files with 152 additions and 2 deletions

12
config/middleware.go Normal file
View File

@@ -0,0 +1,12 @@
package config
import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
)
func Middleware(app *echo.Echo) {
//here are middlewares we use
app.Use(middleware.Logger())
app.Use(middleware.Recover())
}