summaryrefslogtreecommitdiffstats
path: root/internal/models
diff options
context:
space:
mode:
Diffstat (limited to 'internal/models')
-rw-r--r--internal/models/moon.go20
-rw-r--r--internal/models/sl.go1
2 files changed, 21 insertions, 0 deletions
diff --git a/internal/models/moon.go b/internal/models/moon.go
new file mode 100644
index 0000000..bedfc1c
--- /dev/null
+++ b/internal/models/moon.go
@@ -0,0 +1,20 @@
+package models
+
+type MoonParams struct {
+ Query string `json:"query"`
+ Filename string `json:"filename,omitempty"`
+ MaxHits int `json:"max_hits,omitempty"`
+ SortBy string `json:"sort_by,omitempty"`
+ IngestStartDate string `json:"ingest_start_date,omitempty"`
+ IngestEndDate string `json:"ingest_end_date,omitempty"`
+ PostedStartDate string `json:"posted_start_date,omitempty"`
+ PostedEndDate string `json:"posted_end_date,omitempty"`
+ Format string `json:"format,omitempty"`
+}
+
+type MoonResponse struct {
+ MaxHits int `json:"max_hits"`
+ Results interface{} `json:"results"`
+ Message string `json:"message,omitempty"`
+ Error string `json:"error,omitempty"`
+}
diff --git a/internal/models/sl.go b/internal/models/sl.go
index d55279f..f520450 100644
--- a/internal/models/sl.go
+++ b/internal/models/sl.go
@@ -2,6 +2,7 @@ package models
type SLParams struct {
Query string `json:"query"`
+ Filename string `json:"filename,omitempty"`
MaxHits int `json:"max_hits,omitempty"`
SortBy string `json:"sort_by,omitempty"`
IngestStartDate string `json:"ingest_start_date,omitempty"`