mirror of
https://github.com/ZSCNetSupportDept/scheduler.git
synced 2025-10-28 20:45:05 +08:00
add 数据库 Web框架 初步 支持
This commit is contained in:
10
main.go
10
main.go
@@ -1,10 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
"zsxyww.com/scheduler/config"
|
||||
"zsxyww.com/scheduler/database"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
config.Load()
|
||||
db.Connect()
|
||||
|
||||
app := echo.New()
|
||||
register(app)
|
||||
}
|
||||
func register(app *echo.Echo) {
|
||||
config.Route(app)
|
||||
config.Middleware(app)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user