mirror of
https://github.com/ArvinLovegood/go-stock.git
synced 2025-07-19 00:00:09 +08:00
- 更新热门股票列表,增加更多图标和数据字段 - 改进热门话题组件,添加点击事件和额外信息展示 - 调整股票搜索功能,使用居中弹窗打开链接 - 更新 App.vue 中的图标和菜单项 - 修改后端 HotStock 函数,增加返回数据量
51 lines
1.3 KiB
Go
51 lines
1.3 KiB
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)
|
|
}
|
|
func (a *App) StockNotice(stockCode string) []any {
|
|
return data.NewMarketNewsApi().StockNotice(stockCode)
|
|
}
|
|
|
|
func (a *App) IndustryResearchReport(industryCode string) []any {
|
|
return data.NewMarketNewsApi().IndustryResearchReport(industryCode, 7)
|
|
}
|
|
func (a App) EMDictCode(code string) []any {
|
|
return data.NewMarketNewsApi().EMDictCode(code, a.cache)
|
|
}
|
|
|
|
func (a App) AnalyzeSentiment(text string) data.SentimentResult {
|
|
return data.AnalyzeSentiment(text)
|
|
}
|
|
|
|
func (a App) HotStock(marketType string) *[]models.HotItem {
|
|
return data.NewMarketNewsApi().XUEQIUHotStock(100, marketType)
|
|
}
|
|
|
|
func (a App) HotEvent(size int) *[]models.HotEvent {
|
|
if size <= 0 {
|
|
size = 10
|
|
}
|
|
return data.NewMarketNewsApi().HotEvent(size)
|
|
}
|
|
func (a App) HotTopic(size int) []any {
|
|
if size <= 0 {
|
|
size = 10
|
|
}
|
|
return data.NewMarketNewsApi().HotTopic(size)
|
|
}
|