feat: started to make things work
This commit is contained in:
1 parent
9e21732d00
commit
de6480ba4e
8 files changed
+157
-106
No files matched your search
@@ -2,7 +2,7 @@ package main
|
||||
|
||||
type entry struct {
|
||||
ID int64 `json:"_id"`
|
||||
PublicID int64 `json:"public_id"`
|
||||
PublicID int64 `json:"id"`
|
||||
Version int `json:"version"`
|
||||
Note string `json:"note"`
|
||||
Repos []string `json:"repos,omitempty"`
|
||||
@@ -14,6 +14,18 @@ type entry struct {
|
||||
Created string `json:"created"`
|
||||
}
|
||||
|
||||
type flashcardSummary struct {
|
||||
URL string `json:"url"`
|
||||
PublicID int64 `json:"id"`
|
||||
Version int `json:"version"`
|
||||
Note string `json:"note"`
|
||||
Repos []string `json:"repos,omitempty"`
|
||||
Host string `json:"host,omitempty"`
|
||||
Tags []string `json:"tags,omitempty"`
|
||||
User string `json:"user,omitempty"`
|
||||
Created string `json:"created"`
|
||||
}
|
||||
|
||||
type vote struct {
|
||||
ID int64 `json:"_id"`
|
||||
FlashcardID int64 `json:"flashcard_id"`
|
||||
|
||||
Reference in new issue
Block a user