dev mock report
This commit is contained in:
23
internal/models/mock_report.go
Normal file
23
internal/models/mock_report.go
Normal file
@@ -0,0 +1,23 @@
|
||||
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{})
|
||||
}
|
||||
Reference in New Issue
Block a user