修正逻辑
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user