package model

import "time"

type Order struct {
	ID        string    `json:"id"`
	Type      string    `json:"type"` // "buy" or "sell"
	BankName  string    `json:"bank_name"`
	BankLogo  string    `json:"bank_logo"`
	LoanType  string    `json:"loan_type"`
	Percent      string    `json:"percent"`
	Time  string    `json:"time"`
	Price     int64     `json:"price"`
	Point     int64     `json:"point"`
	CreatedAt time.Time `json:"created_at"`
}

type BroadcastMessage struct {
	Type  string `json:"type"` // "buy_order" or "sell_order"
	Order Order  `json:"order"`
}
