File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 4
4
"fmt"
5
5
"gin-vue-admin/global"
6
6
"gin-vue-admin/initialize"
7
+ "github.com/piexlmax/gvaplug"
7
8
"net/http"
8
9
"time"
9
10
)
@@ -17,10 +18,10 @@ func RunWindowsServer() {
17
18
Router .Static ("/form-generator" , "./resource/page" )
18
19
19
20
// 插件安装 暂时只是后台功能 添加model 添加路由 添加对数据库的操作 详细插件测试模板可看https://github.com/piexlmax/gvaplug 此处不建议投入生产
20
- // err := initialize.InstallPlug(global.GVA_DB, Router, gvaplug.GvaPlug{})
21
- // if err != nil {
22
- // panic(fmt.Sprintf("插件安装失败: %v", err))
23
- // }
21
+ err := initialize .InstallPlug (global .GVA_DB , Router , gvaplug.GvaPlug {})
22
+ if err != nil {
23
+ panic (fmt .Sprintf ("插件安装失败: %v" , err ))
24
+ }
24
25
// end 插件描述
25
26
26
27
address := fmt .Sprintf (":%d" , global .GVA_CONFIG .System .Addr )
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ require (
30
30
github.com/onsi/gomega v1.4.3 // indirect
31
31
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
32
32
github.com/pelletier/go-toml v1.6.0 // indirect
33
- github.com/piexlmax/gvaplug v0.0.5
33
+ github.com/piexlmax/gvaplug v0.0.7
34
34
github.com/pkg/errors v0.9.1 // indirect
35
35
github.com/qiniu/api.v7 v7.2.5+incompatible
36
36
github.com/qiniu/x v7.0.8+incompatible // indirect
You can’t perform that action at this time.
0 commit comments