generated from alecodes/base-template
feat: add simple reconsiliation capabilities
This commit is contained in:
parent
5d00b7c336
commit
28fa3ed3cc
5 changed files with 451 additions and 8 deletions
|
|
@ -24,7 +24,7 @@ type ReadwiseCursor struct {
|
|||
|
||||
type ReadwiseApiResponse[T, S any] struct {
|
||||
Results []T `json:"results"`
|
||||
Detail string `json:detail`
|
||||
Detail string `json:"detail"`
|
||||
Count uint64 `json:"count"`
|
||||
NextPageCursor S `json:"nextPageCursor"`
|
||||
}
|
||||
|
|
@ -40,8 +40,8 @@ type ReadwiseDocument struct {
|
|||
// Author string `json:"author"`
|
||||
// Source string `json:"source"`
|
||||
// Category string `json:"category"`
|
||||
Location string `json:"location"`
|
||||
// Tags map[string]string `json:"tags"`
|
||||
Location string `json:"location"`
|
||||
Tags map[string]ReadwiseTag `json:"tags"`
|
||||
// SiteName string `json:"site_name"`
|
||||
// CreatedAt string `json:"created_at"`
|
||||
// UpdatedAt string `json:"updated_at"`
|
||||
|
|
@ -53,6 +53,12 @@ type ReadwiseDocument struct {
|
|||
// LastMovedAt string `json:"last_moved_at"`
|
||||
}
|
||||
|
||||
type ReadwiseTag struct {
|
||||
Name string `json:"name"`
|
||||
Type string `json:"type"`
|
||||
Created int `json:"created"`
|
||||
}
|
||||
|
||||
type ReadwiseHighlight struct {
|
||||
UserBookID int `json:"user_book_id"`
|
||||
Title string `json:"title"`
|
||||
|
|
@ -68,8 +74,8 @@ type ReadwiseHighlight struct {
|
|||
}
|
||||
|
||||
type HighlightTag struct {
|
||||
Id int `json:id`
|
||||
Name string `json:name`
|
||||
Id int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type HighlightItem struct {
|
||||
|
|
|
|||
Reference in a new issue