mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-25 14:48:36 +08:00
18 lines
381 B
Go
18 lines
381 B
Go
package main
|
|
|
|
import (
|
|
"pandax/base/config"
|
|
"pandax/base/ctx"
|
|
"pandax/base/global"
|
|
"pandax/base/starter"
|
|
"pandax/initialize"
|
|
)
|
|
|
|
func main() {
|
|
global.Db = starter.GormInit(config.Conf.Server.DbType)
|
|
initialize.InitTable()
|
|
ctx.UseBeforeHandlerInterceptor(ctx.PermissionHandler)
|
|
ctx.UseAfterHandlerInterceptor(ctx.LogHandler)
|
|
starter.RunWebServer(initialize.InitRouter())
|
|
}
|