feat:完善产品详情

This commit is contained in:
henry
2021-12-09 16:17:23 +08:00
parent adc698840c
commit 626f30a2bd
13 changed files with 361 additions and 359 deletions

View File

@ -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,