talebook

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SuccessStatus      = "ok"
	BookNotFoundStatus = "not_found"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BookResp

type BookResp struct {
	CommonResp
	Msg          string `json:"msg"`
	KindleSender string `json:"kindle_sender"`
	Book         struct {
		ID    int    `json:"id"`
		Title string `json:"title"`
		Files []struct {
			Format string `json:"format"`
			Size   int64  `json:"size"`
			Href   string `json:"href"`
		} `json:"files"`
	} `json:"book"`
}

BookResp stands for default book information

type BooksResp

type BooksResp struct {
	CommonResp
	Msg   string `json:"msg"`
	Title string `json:"title"`
	Total int64  `json:"total"`
	Books []struct {
		ID int64 `json:"id"`
	} `json:"books"`
}

BooksResp is used to return recent books.

type CommonResp

type CommonResp struct {
	Err string `json:"err"`
}

CommonResp is the base response for all the requests.

type LoginResp

type LoginResp struct {
	CommonResp
	Msg string `json:"msg"`
}

LoginResp is used for login action.

Jump to

Keyboard shortcuts

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