feat:完善产品详情
This commit is contained in:
@ -49,8 +49,7 @@ func (this *Serve) Run() {
|
||||
// })
|
||||
//})
|
||||
cache.Init()
|
||||
orm.NewInstance(
|
||||
orm.WithDebug(config.SettingInfo.Engine.Debug),
|
||||
orm.NewInstance(orm.WithDebug(config.SettingInfo.Engine.Debug),
|
||||
orm.WithDBMode(config.SettingInfo.Engine.DBMode),
|
||||
orm.WithTablePrefix(config.SettingInfo.Engine.TablePrefix),
|
||||
orm.WithSingularTable(!config.SettingInfo.Engine.Complex),
|
||||
@ -70,7 +69,10 @@ func (this *Serve) Run() {
|
||||
app.Init()
|
||||
tools.Init()
|
||||
// 开启Elasticsearch
|
||||
es.NewEs()(&es.EsConfig{Address: []string{"http://192.168.0.188:9200"}}).Run()
|
||||
es.NewInstance(es.WithEsAddress([]string{""}),
|
||||
es.WithEsUsername(""),
|
||||
es.WithEsPassword(""),
|
||||
).Init().Local()
|
||||
// 开启web
|
||||
web.NewWeb()(&web.WebConfig{
|
||||
Port: config.SettingInfo.Server.Port, ReadTimeout: config.SettingInfo.Server.ReadTimeout,
|
||||
|
Reference in New Issue
Block a user