mirror of
https://github.com/ArvinLovegood/go-stock.git
synced 2025-07-19 00:00:09 +08:00
feat(market):添加行业研究功能
- 在 App.vue 中添加行业研究选项 - 在 market.vue 中实现行业研究页面布局 - 新增 IndustryResearchReportList 组件用于显示行业研究列表 - 在 app_common.go 中添加相关 API 接口 - 在 market_news_api.go 中实现行业研究数据获取逻辑 - 更新 README.md,添加行业研究功能说明
This commit is contained in:
parent
0d3fd47552
commit
378b669827
@ -2,6 +2,7 @@ package data
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"github.com/coocood/freecache"
|
||||||
"go-stock/backend/db"
|
"go-stock/backend/db"
|
||||||
"go-stock/backend/logger"
|
"go-stock/backend/logger"
|
||||||
"testing"
|
"testing"
|
||||||
@ -93,7 +94,7 @@ func TestStockNotice(t *testing.T) {
|
|||||||
|
|
||||||
func TestEMDictCode(t *testing.T) {
|
func TestEMDictCode(t *testing.T) {
|
||||||
db.Init("../../data/stock.db")
|
db.Init("../../data/stock.db")
|
||||||
resp := NewMarketNewsApi().EMDictCode("016")
|
resp := NewMarketNewsApi().EMDictCode("016", freecache.NewCache(100))
|
||||||
for _, a := range resp {
|
for _, a := range resp {
|
||||||
logger.SugaredLogger.Debugf("value: %+v", a)
|
logger.SugaredLogger.Debugf("value: %+v", a)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user