mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
feat: 前端升级至vue3,后端代码结构重构,新增权限管理相关功能
This commit is contained in:
15
server/main.go
Normal file
15
server/main.go
Normal file
@@ -0,0 +1,15 @@
|
||||
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())
|
||||
}
|
||||
Reference in New Issue
Block a user