This commit is contained in:
2026-04-26 21:26:15 +08:00
parent 95bf0c3342
commit 7a7e28684c
10 changed files with 390 additions and 193 deletions
+17
View File
@@ -0,0 +1,17 @@
package model
import "time"
type TradeCalendar struct {
CalDate time.Time `gorm:"column:cal_date;primaryKey"`
Exchange string `gorm:"column:exchange;primaryKey"`
IsOpen int `gorm:"column:is_open"`
PretradeDate time.Time `gorm:"column:pretrade_date"`
}
func (TradeCalendar) TableName() string { return "trade_calendar" }
type CalendarResponse struct {
OpenDates []string `json:"open_dates"`
MaxDate string `json:"max_date"`
}