mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-20 19:07:56 +08:00
chore!(all): attempt to update beego to v2
BREAKING CHANGE: beego has update to v2, and this version of mindoc IS NOT TESTED AND STABLE!!!
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/astaxie/beego/orm"
|
||||
"github.com/beego/beego/v2/adapter/logs"
|
||||
"github.com/beego/beego/v2/adapter/orm"
|
||||
"github.com/mindoc-org/mindoc/conf"
|
||||
"github.com/mindoc-org/mindoc/models"
|
||||
"github.com/mindoc-org/mindoc/utils/pagination"
|
||||
@@ -11,6 +11,7 @@ import (
|
||||
type ItemsetsController struct {
|
||||
BaseController
|
||||
}
|
||||
|
||||
func (c *ItemsetsController) Prepare() {
|
||||
c.BaseController.Prepare()
|
||||
|
||||
@@ -65,7 +66,7 @@ func (c *ItemsetsController) List() {
|
||||
if err == orm.ErrNoRows {
|
||||
c.Abort("404")
|
||||
} else {
|
||||
beego.Error(err)
|
||||
logs.Error(err)
|
||||
c.Abort("500")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user