dev mock report

This commit is contained in:
yanweidong
2026-02-11 19:25:56 +08:00
parent 0a2e26035f
commit 09be57182a
3 changed files with 45 additions and 5 deletions

View 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{})
}