mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-15 04:06:35 +08:00
feat: 优化
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"mayfly-go/base/ctx"
|
||||
"mayfly-go/base/global"
|
||||
"mayfly-go/base/starter"
|
||||
"mayfly-go/server/initialize"
|
||||
)
|
||||
|
||||
func main() {
|
||||
ctx.UseBeforeHandlerInterceptor(ctx.PermissionHandler)
|
||||
ctx.UseAfterHandlerInterceptor(ctx.LogHandler)
|
||||
global.Db = starter.GormMysql()
|
||||
starter.RunWebServer(initialize.InitRouter())
|
||||
starter.PrintBanner()
|
||||
starter.InitDb()
|
||||
starter.RunWebServer()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user