From 2e2943c27176d8ddbfbc551632e4f9d0e86cb41e Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Mon, 17 Oct 2022 17:21:54 -0600 Subject: reorganised code --- definitions.go | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 definitions.go (limited to 'definitions.go') diff --git a/definitions.go b/definitions.go new file mode 100644 index 0000000..2289865 --- /dev/null +++ b/definitions.go @@ -0,0 +1,34 @@ +package main + +type SearchQuery struct { + Query string + MaxResults int64 + Offset int64 +} + +type BaseResponse struct { + GlobalVars GlobalVars +} + +type SearchResponse struct { + GlobalVars GlobalVars + Success bool + SearchResults []interface{} + NumResults int + TotalResults int64 + MoreResults bool + OriginalQuery SearchQuery + Offset int64 + LastOffset int64 + NumPages int +} + +type DocumentResponse struct { + GlobalVars GlobalVars + SearchResults interface{} + SummaryPDF string +} + +type GlobalVars struct { + Name string +} -- cgit v1.2.3