You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
938 B
21 lines
938 B
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"` // 交易周期 |
|
StrategyName string `gorm:"column:strategy_name" json:"strategyName"` // 策略名称 |
|
UpdateBy string `gorm:"column:update_by" json:"updateBy"` // 更新人 |
|
UpdateTime int64 `gorm:"column:update_time" json:"updateTime"` // 更新时间戳毫秒 |
|
} |
|
|
|
func (TradingPlan) TableName() string { |
|
return "t_trading_plan" |
|
}
|
|
|