forked from snowlyg/iris-admin-rbac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc.go
50 lines (40 loc) · 919 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
<h1 align="center">IrisAdminRbac</h1>
[IrisAdminRbac](https://www.github.com/snowlyg/iris-admin-rbac) 项目为一个权鉴模块插件,可以为 [IrisAdmin](https://www.github.com/snowlyg/iris-admin) 项目快速集成权鉴管理API.
#####
- 简单使用(gin)
```go
package main
import (
"github.com/snowlyg/iris-admin/server/web"
"github.com/snowlyg/iris-admin/server/web/web_gin"
rbac "github.com/snowlyg/iris-admin-rbac/gin"
)
func main() {
wi := web_gin.Init()
v1 := wi.Group("/api/v1")
{
rbac.Party(v1) // 权鉴模块
}
web.Start(wi)
}
```
- 简单使用(iris)
```go
package main
import (
"github.com/snowlyg/iris-admin/server/web"
"github.com/snowlyg/iris-admin/server/web/web_iris"
rbac "github.com/snowlyg/iris-admin-rbac/iris"
)
func main() {
wi := web_iris.Init()
v1 := wi.Group("/api/v1")
{
rbac.Party(v1) // 权鉴模块
}
web.Start(wi)
}
```
*/
package doc