You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
398 B
24 lines
398 B
package main
|
|
|
|
import (
|
|
"gin-vue-admin/core"
|
|
"gin-vue-admin/global"
|
|
"gin-vue-admin/initialize"
|
|
//"runtime"
|
|
)
|
|
|
|
func main() {
|
|
switch global.GVA_CONFIG.System.DbType {
|
|
case "mysql":
|
|
initialize.Mysql()
|
|
case "sqlite":
|
|
initialize.Sqlite()
|
|
default:
|
|
initialize.Mysql()
|
|
}
|
|
initialize.DBTables()
|
|
// 程序结束前关闭数据库链接
|
|
defer global.GVA_DB.Close()
|
|
|
|
core.RunWindowsServer()
|
|
}
|