This commit is contained in:
2026-04-24 16:50:46 +08:00
commit 6d1611d08c
8 changed files with 435 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
package model
import "time"
type StockDaily struct {
TsCode string `gorm:"column:ts_code"`
TradeDate time.Time `gorm:"column:trade_date"`
Open float64 `gorm:"column:open"`
High float64 `gorm:"column:high"`
Low float64 `gorm:"column:low"`
Close float64 `gorm:"column:close"`
}
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"`
}