Files
stock/internal/models/money_total.go
2026-02-12 19:41:52 +08:00

24 lines
709 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package models
import "git.apinb.com/bsm-sdk/core/database"
// 资金流数据模型
type MoneyTotal struct {
ID uint `gorm:"primarykey"`
Code string // 股票代码
Last1DayMfAmount float64 // 最近1天净流入额万元
Last3DayMfAmount float64 // 最近3天净流入额万元
Last1DayTotalAmount float64 // 最近1天中大单总流入额万元
Last3DayTotalAmount float64 // 最近3天中大单总流入额万元
IsGreaterPervious bool // 是否比上一日大单流入额多
}
func init() {
database.AppendMigrate(&MoneyTotal{})
}
// TableName 设置表名
func (MoneyTotal) TableName() string {
return "money_total"
}