import cycle not allowed

This commit is contained in:
2023-01-18 17:46:25 +08:00
parent 8d3a64b26e
commit 26f46f1eb6
35 changed files with 355 additions and 341 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
package page
import (
"cutego/pkg/common"
"cutego/pkg/logging"
"github.com/go-xorm/xorm"
)
@@ -34,7 +34,7 @@ func GetTotal(engine *xorm.Session, args ...interface{}) (int64, error) {
}
count, err := engine.Count()
if err != nil {
common.ErrorLog(err.Error())
logging.ErrorLog(err.Error())
return 0, err
}
return count, nil