修正逻辑

This commit is contained in:
2026-04-25 15:11:19 +08:00
parent 6d1611d08c
commit 95bf0c3342
2 changed files with 61 additions and 30 deletions
+9 -9
View File
@@ -14,13 +14,13 @@ type StockDaily struct {
func (StockDaily) TableName() string { return "stock_daily" }
type AnalysisResponse struct {
Code string `json:"code"`
Name string `json:"name"`
DayOpen float64 `json:"day_open"`
DayHigh float64 `json:"day_high"`
MaxHigh float64 `json:"max_high"`
MaxDate string `json:"max_date"`
PostMinLow float64 `json:"post_min_low"`
DropPct float64 `json:"drop_pct"`
ReboundPct float64 `json:"rebound_pct"`
Code string `json:"code"`
Name string `json:"name"`
DayOpen float64 `json:"day_open"`
DayHigh float64 `json:"day_high"`
MaxHigh float64 `json:"max_high"`
MaxDate string `json:"max_date"`
PostMinLow float64 `json:"post_min_low"`
DropPct *float64 `json:"drop_pct"` // 改为指针以支持 null
ReboundPct *float64 `json:"rebound_pct"` // 改为指针以支持 null
}