统一单入口 Go 工程与前端依赖目录,增加后台供应商配置、候选审核、计划预算、成交冲正、持仓复盘和站内通知。接入策略版本、Python 回测、可配置 A 股公开行情及 zap 文件轮转日志,补充迁移、契约与验证。
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type PlanPreview struct {
|
||||
ID string `db:"id" json:"id"`
|
||||
AccountID string `db:"account_id" json:"account_id"`
|
||||
CandidateRevisionID string `db:"candidate_revision_id" json:"candidate_revision_id"`
|
||||
CandidateVersion int64 `db:"candidate_version" json:"candidate_version"`
|
||||
Quantity int64 `db:"quantity" json:"quantity,string"`
|
||||
FeeBudgetMinor int64 `db:"fee_budget_minor" json:"-"`
|
||||
ReservedMinor int64 `db:"reserved_minor" json:"-"`
|
||||
ReservedAmount string `json:"reserved_amount"`
|
||||
FeeBudget string `json:"fee_budget"`
|
||||
ExpiresAt time.Time `db:"expires_at" json:"expires_at"`
|
||||
CreatedAt time.Time `db:"created_at" json:"created_at"`
|
||||
}
|
||||
|
||||
func (PlanPreview) TableName() string { return "veyra_plan_preview" }
|
||||
|
||||
type TradePlan struct {
|
||||
ID string `db:"id" json:"id"`
|
||||
PreviewID string `db:"preview_id" json:"preview_id"`
|
||||
AccountID string `db:"account_id" json:"account_id"`
|
||||
CandidateRevisionID string `db:"candidate_revision_id" json:"candidate_revision_id"`
|
||||
CandidateVersion int64 `db:"candidate_version" json:"candidate_version"`
|
||||
Quantity int64 `db:"quantity" json:"quantity,string"`
|
||||
FilledQuantity int64 `db:"filled_quantity" json:"filled_quantity,string"`
|
||||
FeeBudgetMinor int64 `db:"fee_budget_minor" json:"-"`
|
||||
ReservedMinor int64 `db:"reserved_minor" json:"-"`
|
||||
ReservedAmount string `json:"reserved_amount"`
|
||||
Status string `db:"status" json:"status"`
|
||||
Version int64 `db:"version" json:"version"`
|
||||
ValidUntil time.Time `db:"valid_until" json:"valid_until"`
|
||||
CreatedAt time.Time `db:"created_at" json:"created_at"`
|
||||
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
|
||||
CandidateContent CandidateContent `json:"candidate_content"`
|
||||
}
|
||||
|
||||
func (TradePlan) TableName() string { return "veyra_trade_plan" }
|
||||
|
||||
type PlanBudget struct {
|
||||
AccountID string `json:"account_id"`
|
||||
CashBalance string `json:"cash_balance"`
|
||||
ReservedAmount string `json:"reserved_amount"`
|
||||
AvailableAmount string `json:"available_amount"`
|
||||
}
|
||||
Reference in New Issue
Block a user