23 lines
382 B
Go
23 lines
382 B
Go
package models
|
|
|
|
import (
|
|
"git.apinb.com/bsm-sdk/core/database"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type MockPosition struct {
|
|
gorm.Model
|
|
Code string
|
|
OpenPrice float64
|
|
ClosePrice float64
|
|
Pnl float64
|
|
PnlRate float64
|
|
Status int `default:"0"`
|
|
}
|
|
|
|
func (m *MockPosition) TableName() string { return "mock_positions" }
|
|
|
|
func init() {
|
|
database.AppendMigrate(&MockPosition{})
|
|
}
|