mirror of
https://github.com/ArvinLovegood/go-stock.git
synced 2025-07-19 00:00:09 +08:00
- 修改 App.d.ts 和 App.js,为 StockResearchReport 函数添加股票代码参数 - 更新 app_common.go,将 StockResearchReport 方法改为接收股票代码参数 - 修改 market_news_api.go,实现根据股票代码查询研报的逻辑 - 更新 market_news_api_test.go,添加针对具体股票代码的测试用例 - 在前端 StockResearchReportList 组件中增加股票代码搜索功能
20 lines
465 B
Go
20 lines
465 B
Go
package main
|
|
|
|
import (
|
|
"go-stock/backend/data"
|
|
"go-stock/backend/models"
|
|
)
|
|
|
|
// @Author spark
|
|
// @Date 2025/6/8 20:45
|
|
// @Desc
|
|
//-----------------------------------------------------------------------------------
|
|
|
|
func (a *App) LongTigerRank(date string) *[]models.LongTigerRankData {
|
|
return data.NewMarketNewsApi().LongTiger(date)
|
|
}
|
|
|
|
func (a *App) StockResearchReport(stockCode string) []any {
|
|
return data.NewMarketNewsApi().StockResearchReport(stockCode, 7)
|
|
}
|