add json tag to insertedAt field

This commit is contained in:
Yu-Cheng 2024-06-17 17:44:50 +08:00
parent 49d567c8f2
commit 0d7236ca8a

View File

@ -96,7 +96,7 @@ type Trade struct {
// PnL is the profit and loss value of the executed trade // PnL is the profit and loss value of the executed trade
PnL sql.NullFloat64 `json:"pnl" db:"pnl"` PnL sql.NullFloat64 `json:"pnl" db:"pnl"`
InsertedAt Time `db:"inserted_at"` InsertedAt Time `json:"insertedAt" db:"inserted_at"`
} }
func (trade Trade) CsvHeader() []string { func (trade Trade) CsvHeader() []string {