Skip to content

Commit

Permalink
v0.8.9 +Charts
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Oct 19, 2021
1 parent e99f340 commit 2779e79
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions engine/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand All @@ -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")
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion share/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
)

// VERSION 版本号
const VERSION = "0.8.8"
const VERSION = "0.8.9"

// DOMAIN 许可域
const DOMAIN = "*.iqka.com"
Expand Down
2 changes: 1 addition & 1 deletion xiang/apis/chart.http.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2779e79

Please sign in to comment.