feat:完善入驻信息管理
This commit is contained in:
@ -11,8 +11,8 @@ import (
|
||||
"SciencesServer/serve/es"
|
||||
"SciencesServer/serve/logger"
|
||||
"SciencesServer/serve/orm"
|
||||
"SciencesServer/serve/orm/logic"
|
||||
"SciencesServer/serve/web"
|
||||
"SciencesServer/task"
|
||||
"SciencesServer/tools"
|
||||
"SciencesServer/utils"
|
||||
"strings"
|
||||
@ -50,8 +50,6 @@ func (this *Serve) Run() {
|
||||
})
|
||||
})
|
||||
cache.Init()
|
||||
//orm.Init()
|
||||
// TODO:待优化完善
|
||||
orm.NewInstance(
|
||||
orm.WithDebug(config.SettingInfo.Engine.Debug),
|
||||
orm.WithDBMode(config.SettingInfo.Engine.DBMode),
|
||||
@ -60,9 +58,14 @@ func (this *Serve) Run() {
|
||||
orm.WithMaxIdleConns(config.SettingInfo.Engine.MaxIdleConns),
|
||||
orm.WithMaxOpenConns(config.SettingInfo.Engine.MaxOpenConns),
|
||||
orm.WithMaxLifetime(config.SettingInfo.Engine.MaxLifetime),
|
||||
//orm.WithMysqlUser(config.SettingInfo.Engine.Mysql.User),
|
||||
).Init()
|
||||
task.Init()
|
||||
orm.WithMysqlOption(&logic.Mysql{
|
||||
User: config.SettingInfo.Engine.Mysql.User, Password: config.SettingInfo.Engine.Mysql.Password,
|
||||
Host: config.SettingInfo.Engine.Mysql.Host, Port: config.SettingInfo.Engine.Mysql.Port,
|
||||
DBName: config.SettingInfo.Engine.Mysql.DBName, Parameters: config.SettingInfo.Engine.Mysql.Parameters,
|
||||
}),
|
||||
orm.WithSqliteOption(&logic.Sqlite{Path: config.SettingInfo.Engine.Sqlite.Path, Name: config.SettingInfo.Engine.Sqlite.Name}),
|
||||
).Init().Local()
|
||||
//task.Init()
|
||||
common.Init()
|
||||
cron.Init()
|
||||
app.Init()
|
||||
|
Reference in New Issue
Block a user