From 9b10bd2f29551a2f36a78691ac31755675998df0 Mon Sep 17 00:00:00 2001 From: Chigozirim Igweamaka Date: Sun, 14 Jul 2024 15:04:21 +0100 Subject: [PATCH] Move RecordData struct to models to avoid circular import --- models/models.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/models/models.go b/models/models.go index 33f0e4a..4652c06 100644 --- a/models/models.go +++ b/models/models.go @@ -4,3 +4,11 @@ type Couple struct { AnchorTimeMs uint32 SongID uint32 } + +type RecordData struct { + Audio string `json:"audio"` + Duration float64 `json:"duration"` + Channels int `json:"channels"` + SampleRate int `json:"sampleRate"` + SampleSize int `json:"sampleSize"` +}