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.
Click to show internal directories.
Click to hide internal directories.