Merge pull request #3 from lifei6671/master

merge from lifei6671/mindoc
This commit is contained in:
roberChen
2021-03-19 14:27:11 +08:00
committed by GitHub

View File

@@ -34,6 +34,7 @@ func RegisterDataBase() {
beego.Info("正在初始化数据库配置.") beego.Info("正在初始化数据库配置.")
adapter := beego.AppConfig.String("db_adapter") adapter := beego.AppConfig.String("db_adapter")
orm.DefaultTimeLoc = time.Local orm.DefaultTimeLoc = time.Local
orm.DefaultRowsLimit = -1
if strings.EqualFold(adapter, "mysql") { if strings.EqualFold(adapter, "mysql") {
host := beego.AppConfig.String("db_host") host := beego.AppConfig.String("db_host")