feat:完善项目
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user