diff --git a/engine/load.go b/engine/load.go index 0707eef693..ef1f5dc43c 100644 --- a/engine/load.go +++ b/engine/load.go @@ -8,10 +8,12 @@ import ( "github.com/yaoapp/kun/exception" "github.com/yaoapp/xiang/api" "github.com/yaoapp/xiang/app" + "github.com/yaoapp/xiang/chart" "github.com/yaoapp/xiang/config" "github.com/yaoapp/xiang/flow" "github.com/yaoapp/xiang/model" "github.com/yaoapp/xiang/plugin" + "github.com/yaoapp/xiang/query" "github.com/yaoapp/xiang/share" "github.com/yaoapp/xiang/table" ) @@ -23,12 +25,14 @@ func Load(cfg config.Config) { app.Load(cfg) // 加载应用信息 LoadEngine(cfg.Path) + query.Load(cfg) // 加载数据分析引擎 model.Load(cfg) // 加载数据模型 model api.Load(cfg) // 加载业务接口 API flow.Load(cfg) // 加载业务逻辑 Flow plugin.Load(cfg) // 加载业务插件 plugin table.Load(cfg) // 加载数据表格 table + chart.Load(cfg) // 加载分析图表 chart // 加密密钥函数 gou.LoadCrypt(fmt.Sprintf(`{"key":"%s"}`, cfg.Database.AESKey), "AES") diff --git a/main.go b/main.go index 2ba399ed7d..9a0598cbd1 100644 --- a/main.go +++ b/main.go @@ -2,6 +2,7 @@ package main import ( "github.com/yaoapp/xiang/cmd" + _ "github.com/yaoapp/xiang/helper" _ "github.com/yaoapp/xiang/user" _ "github.com/yaoapp/xiang/xfs" ) diff --git a/share/const.go b/share/const.go index 15974d6735..1d59aa4ba2 100644 --- a/share/const.go +++ b/share/const.go @@ -5,7 +5,7 @@ import ( ) // VERSION 版本号 -const VERSION = "0.8.8" +const VERSION = "0.8.9" // DOMAIN 许可域 const DOMAIN = "*.iqka.com" diff --git a/xiang/apis/chart.http.json b/xiang/apis/chart.http.json index 2aedb3fe56..db967c9f68 100644 --- a/xiang/apis/chart.http.json +++ b/xiang/apis/chart.http.json @@ -9,7 +9,7 @@ "path": "/:name/data", "method": "GET", "process": "xiang.chart.Data", - "in": ["$param.name", ":query-param"], + "in": ["$param.name", ":query"], "out": { "status": 200, "type": "application/json"