1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-14 03:50:39 +00:00

make stmt cache smaller

This commit is contained in:
Ming Deng
2020-10-10 21:34:02 +08:00
parent 8e37fe3b78
commit 1dffa20435
23 changed files with 89 additions and 75 deletions

View File

@ -40,10 +40,11 @@
package authz
import (
"net/http"
"github.com/astaxie/beego"
"github.com/astaxie/beego/context"
"github.com/casbin/casbin"
"net/http"
)
// NewAuthorizer returns the authorizer.

View File

@ -15,13 +15,14 @@
package authz
import (
"net/http"
"net/http/httptest"
"testing"
"github.com/astaxie/beego"
"github.com/astaxie/beego/context"
"github.com/astaxie/beego/plugins/auth"
"github.com/casbin/casbin"
"net/http"
"net/http/httptest"
"testing"
)
func testRequest(t *testing.T, handler *beego.ControllerRegister, user string, path string, method string, code int) {