dto

package
v0.0.0-...-689dde8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BooksWithNotesResponse

type BooksWithNotesResponse struct {
	Books []NoteBook `json:"books"`
}

type GoalProgressResponse

type GoalProgressResponse struct {
	Percentage float64 `json:"percentage"`
	Left       int64   `json:"left"`
}

type ListItemsResponse

type ListItemsResponse struct {
	ID       int64  `json:"id"`
	ListID   int64  `json:"list_id"`
	BookName string `json:"book_name"`
}

type ListListsResponse

type ListListsResponse struct {
	ID    int64  `json:"id"`
	Title string `json:"title"`
}

type ListRequest

type ListRequest struct {
	Title string `json:"title"`
}

type ListResponse

type ListResponse struct {
	ID        int64               `json:"id"`
	Title     string              `json:"title"`
	ListItems []ListItemsResponse `json:"list_items"`
}

type NoteBook

type NoteBook struct {
	ID    int64  `json:"id"`
	Title string `json:"title"`
}

type NoteRequest

type NoteRequest struct {
	PageNumber int64  `json:"page_number"`
	Content    string `json:"content"`
}

type NoteResponse

type NoteResponse struct {
	ID         int64  `json:"id"`
	PageNumber int64  `json:"page_number"`
	Content    string `json:"content"`
}

type ProgressRequest

type ProgressRequest struct {
	Pages int64     `json:"pages"`
	Date  time.Time `json:"date"`
}

type Reading

type Reading struct {
	ID         int64  `json:"id"`
	TotalPages int64  `json:"total_pages"`
	Link       string `json:"link"`
}

type ReadingResponse

type ReadingResponse struct {
	BookTitle string  `json:"book_title"`
	Status    string  `json:"status"`
	Progress  int64   `json:"progress"`
	Reading   Reading `json:"reading"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL