12345678910111213141516171819202122232425 |
- package services
- import (
- "app.yhyue.com/moapp/jybase/go-xweb/httpsession"
- "app.yhyue.com/moapp/jybase/go-xweb/xweb"
- _ "leadGeneration/services/filter"
- "time"
- )
- func init() {
- //开启redissession
- httpsession.IsRedisSessionStore = true
- xweb.Config.Profiler = true
- xweb.RootApp().AppConfig.StaticFileVersion = false
- xweb.RootApp().AppConfig.CheckXsrf = false
- xweb.RootApp().AppConfig.EnableHttpCache = false
- xweb.RootApp().AppConfig.Mode = xweb.Product
- xweb.RootApp().AppConfig.ReloadTemplates = true
- xweb.RootApp().AppConfig.SessionTimeout = 7 * 24 * time.Hour
- xweb.RootApp().Logger.SetOutputLevel(1) //输出日志,改为4则不输出任何日志
- xweb.RootApp().BasePath = "/leadGeneration"
- xweb.AddAction(&LeadGeneration{})
- }
|