package entity import ( "sig-pub/api/pb" "sig-pub/pkg/types" ) type TradingPlan struct { Id int64 `gorm:"column:id;primaryKey" json:"id"` // 交易计划id Userid string `gorm:"column:userid" json:"userid"` // 所属用户id Exchange pb.ExchangeType `gorm:"column:exchange" json:"exchange"` // 交易所 InstId string `gorm:"column:instId" json:"instId"` // 交易产品 Interval types.Interval `gorm:"column:interval" json:"interval"` // 交易周期 Strategy string `gorm:"column:strategy" json:"strategy"` // 策略名称 UpdateBy string `gorm:"column:update_by" json:"updateBy"` // 更新人 UpdateTime int64 `gorm:"column:update_time" json:"updateTime"` // 更新时间戳毫秒 } func (TradingPlan) TableName() string { return "t_trading_plan" }