1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-12 10:40:40 +00:00

uing pkg module

This commit is contained in:
Ming Deng
2020-07-29 21:56:19 +08:00
parent 7312197732
commit aa06a10493
75 changed files with 192 additions and 181 deletions

View File

@ -65,8 +65,8 @@ import (
"sort"
"time"
"github.com/astaxie/beego"
"github.com/astaxie/beego/context"
"github.com/astaxie/beego/pkg"
"github.com/astaxie/beego/pkg/context"
)
// AppIDToAppSecret is used to get appsecret throw appid

View File

@ -40,8 +40,8 @@ import (
"net/http"
"strings"
"github.com/astaxie/beego"
"github.com/astaxie/beego/context"
"github.com/astaxie/beego/pkg"
"github.com/astaxie/beego/pkg/context"
)
var defaultRealm = "Authorization Required"

View File

@ -40,8 +40,8 @@
package authz
import (
"github.com/astaxie/beego"
"github.com/astaxie/beego/context"
"github.com/astaxie/beego/pkg"
"github.com/astaxie/beego/pkg/context"
"github.com/casbin/casbin"
"net/http"
)

View File

@ -15,9 +15,9 @@
package authz
import (
"github.com/astaxie/beego"
"github.com/astaxie/beego/context"
"github.com/astaxie/beego/plugins/auth"
"github.com/astaxie/beego/pkg"
"github.com/astaxie/beego/pkg/context"
"github.com/astaxie/beego/pkg/plugins/auth"
"github.com/casbin/casbin"
"net/http"
"net/http/httptest"

View File

@ -42,8 +42,8 @@ import (
"strings"
"time"
"github.com/astaxie/beego"
"github.com/astaxie/beego/context"
"github.com/astaxie/beego/pkg"
"github.com/astaxie/beego/pkg/context"
)
const (

View File

@ -21,8 +21,8 @@ import (
"testing"
"time"
"github.com/astaxie/beego"
"github.com/astaxie/beego/context"
"github.com/astaxie/beego/pkg"
"github.com/astaxie/beego/pkg/context"
)
// HTTPHeaderGuardRecorder is httptest.ResponseRecorder with own http.Header