奇淼(piexlmax
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
5 deletions
-
README.md
-
server/service/sys_casbin.go
|
@ -223,12 +223,12 @@ zap: |
|
|
|
|
|
|
|
|
#### 2.3.1 安装 swagger |
|
|
#### 2.3.1 安装 swagger |
|
|
|
|
|
|
|
|
##### (1)可以科学上网 |
|
|
|
|
|
|
|
|
##### (1)可以访问外国网站 |
|
|
```` |
|
|
```` |
|
|
go get -u github.com/swaggo/swag/cmd/swag |
|
|
go get -u github.com/swaggo/swag/cmd/swag |
|
|
```` |
|
|
```` |
|
|
|
|
|
|
|
|
##### (2)无法科学上网 |
|
|
|
|
|
|
|
|
##### (2)无法访问外国网站 |
|
|
|
|
|
|
|
|
由于国内没法安装 go.org/x 包下面的东西,推荐使用 [goproxy.io](https://goproxy.io/zh/) |
|
|
由于国内没法安装 go.org/x 包下面的东西,推荐使用 [goproxy.io](https://goproxy.io/zh/) |
|
|
|
|
|
|
|
|
|
@ -93,7 +93,6 @@ func ClearCasbin(v int, p ...string) bool { |
|
|
var ( |
|
|
var ( |
|
|
e *casbin.Enforcer |
|
|
e *casbin.Enforcer |
|
|
once sync.Once |
|
|
once sync.Once |
|
|
eLock sync.Mutex |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func Casbin() *casbin.Enforcer { |
|
|
func Casbin() *casbin.Enforcer { |
|
|