feat:完善项目

This commit is contained in:
henry
2021-11-15 17:32:23 +08:00
parent f5e2063685
commit 78128277ff
27 changed files with 717 additions and 105 deletions

View File

@ -11,9 +11,8 @@ import (
"ArmedPolice/serve/orm"
"ArmedPolice/serve/web"
"ArmedPolice/task"
"strings"
"github.com/gin-gonic/gin"
"strings"
)
type Serve struct {
@ -32,10 +31,7 @@ func (this *Serve) Run() {
logger.NewLogger().Init(&logger.Option{File: obj.Log.File, LeastDay: obj.Log.LeastDay, Level: obj.Log.Level, IsStdout: false}).Load()
})
orm.Init()
if *config.Init {
common.Init()
}
common.Init()
cache.Init()
task.Init()
app.Init()