init
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
Reference in New Issue
Block a user