fix mock bug
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package models
|
||||
|
||||
import "gorm.io/gorm"
|
||||
import (
|
||||
"git.apinb.com/bsm-sdk/core/database"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type MockPosition struct {
|
||||
gorm.Model
|
||||
@@ -11,3 +14,9 @@ type MockPosition struct {
|
||||
PnlRate float64
|
||||
Status int `default:"0"`
|
||||
}
|
||||
|
||||
func (m *MockPosition) TableName() string { return "mock_positions" }
|
||||
|
||||
func init() {
|
||||
database.AppendMigrate(&MockPosition{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user