24 lines
380 B
Go
24 lines
380 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"git.apinb.com/bsm-sdk/core/database"
|
|
)
|
|
|
|
type MockReport struct {
|
|
ID uint `gorm:"primarykey"`
|
|
PositionId uint
|
|
TodayDate time.Time
|
|
Code string
|
|
ClosePrice float64
|
|
Pnl float64
|
|
PnlRate float64
|
|
}
|
|
|
|
func (m *MockReport) TableName() string { return "mock_report" }
|
|
|
|
func init() {
|
|
database.AppendMigrate(&MockReport{})
|
|
}
|