-
Notifications
You must be signed in to change notification settings - Fork 27
/
matched_order.gen.go
30 lines (26 loc) · 1.77 KB
/
matched_order.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
const TableNameMatchedOrder = "matched_order"
// MatchedOrder mapped from table <matched_order>
type MatchedOrder struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:雪花算法id" json:"id"`
MatchID string `gorm:"column:match_id;not null;comment:撮合id" json:"match_id"`
MatchSubID string `gorm:"column:match_sub_id;not null;comment:本次匹配的id,一次撮合会多次匹配" json:"match_sub_id"`
SymbolID int32 `gorm:"column:symbol_id;not null;comment:交易对id" json:"symbol_id"`
SymbolName string `gorm:"column:symbol_name;not null;comment:交易对名称" json:"symbol_name"`
TakerOrderID string `gorm:"column:taker_order_id;not null;comment:taker订单id" json:"taker_order_id"`
MakerOrderID string `gorm:"column:maker_order_id;not null;comment:maker订单id" json:"maker_order_id"`
TakerIsBuyer int32 `gorm:"column:taker_is_buyer;not null;default:2;comment:taker是否是买单 1是 2否" json:"taker_is_buyer"`
Price string `gorm:"column:price;not null;comment:价格" json:"price"`
Qty string `gorm:"column:qty;not null;comment:数量(基础币)" json:"qty"`
Amount string `gorm:"column:amount;not null;comment:金额(计价币)" json:"amount"`
MatchTime int64 `gorm:"column:match_time;not null;comment:撮合时间" json:"match_time"`
CreatedAt int64 `gorm:"column:created_at;not null;comment:创建时间" json:"created_at"`
UpdatedAt int64 `gorm:"column:updated_at;not null;comment:修改时间" json:"updated_at"`
}
// TableName MatchedOrder's table name
func (*MatchedOrder) TableName() string {
return TableNameMatchedOrder
}