提交 16cf2619 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

插件功能更新 修改插件包的实现方案

上级 0a0e32ba
...@@ -4,6 +4,7 @@ import ( ...@@ -4,6 +4,7 @@ import (
"fmt" "fmt"
"gin-vue-admin/global" "gin-vue-admin/global"
"gin-vue-admin/initialize" "gin-vue-admin/initialize"
"github.com/piexlmax/gvaplug"
"net/http" "net/http"
"time" "time"
) )
...@@ -17,10 +18,10 @@ func RunWindowsServer() { ...@@ -17,10 +18,10 @@ func RunWindowsServer() {
Router.Static("/form-generator", "./resource/page") Router.Static("/form-generator", "./resource/page")
// 插件安装 暂时只是后台功能 添加model 添加路由 添加对数据库的操作 详细插件测试模板可看https://github.com/piexlmax/gvaplug 此处不建议投入生产 // 插件安装 暂时只是后台功能 添加model 添加路由 添加对数据库的操作 详细插件测试模板可看https://github.com/piexlmax/gvaplug 此处不建议投入生产
//err := initialize.InstallPlug(global.GVA_DB, Router, gvaplug.GvaPlug{}) err := initialize.InstallPlug(global.GVA_DB, Router, gvaplug.GvaPlug{})
//if err != nil { if err != nil {
// panic(fmt.Sprintf("插件安装失败: %v", err)) panic(fmt.Sprintf("插件安装失败: %v", err))
//} }
// end 插件描述 // end 插件描述
address := fmt.Sprintf(":%d", global.GVA_CONFIG.System.Addr) address := fmt.Sprintf(":%d", global.GVA_CONFIG.System.Addr)
......
...@@ -30,7 +30,7 @@ require ( ...@@ -30,7 +30,7 @@ require (
github.com/onsi/gomega v1.4.3 // indirect github.com/onsi/gomega v1.4.3 // indirect
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7 github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
github.com/pelletier/go-toml v1.6.0 // indirect github.com/pelletier/go-toml v1.6.0 // indirect
github.com/piexlmax/gvaplug v0.0.5 github.com/piexlmax/gvaplug v0.0.7
github.com/pkg/errors v0.9.1 // indirect github.com/pkg/errors v0.9.1 // indirect
github.com/qiniu/api.v7 v7.2.5+incompatible github.com/qiniu/api.v7 v7.2.5+incompatible
github.com/qiniu/x v7.0.8+incompatible // indirect github.com/qiniu/x v7.0.8+incompatible // indirect
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册