[优化]base模块提出

This commit is contained in:
PandaGoAdmin
2022-08-02 22:37:37 +08:00
parent 0555922a90
commit 2cb23c0ecf
151 changed files with 550 additions and 5255 deletions

View File

@@ -1,9 +1,9 @@
package global
import (
"github.com/XM-GO/PandaKit/config"
"github.com/sirupsen/logrus"
"gorm.io/gorm"
"pandax/base/config"
)
var (

View File

@@ -1,12 +1,12 @@
package initialize
import (
"github.com/XM-GO/PandaKit/biz"
devEntity "pandax/apps/develop/entity"
jobEntity "pandax/apps/job/entity"
logEntity "pandax/apps/log/entity"
resSourceEntity "pandax/apps/resource/entity"
"pandax/apps/system/entity"
"pandax/base/biz"
"pandax/pkg/global"
)

View File

@@ -1,14 +1,14 @@
package middleware
import (
"github.com/XM-GO/PandaKit/restfulx"
"github.com/XM-GO/PandaKit/utils"
"net/http"
"pandax/apps/log/entity"
"pandax/apps/log/services"
"pandax/base/ginx"
"pandax/base/utils"
)
func OperationHandler(rc *ginx.ReqCtx) error {
func OperationHandler(rc *restfulx.ReqCtx) error {
c := rc.GinCtx
// 请求操作不做记录
if c.Request.Method == http.MethodGet || rc.LoginAccount == nil {