services

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DbInit

func DbInit(SqliteDbPath string) (bool, error)

func QueryAuthorBooks

func QueryAuthorBooks(authorid, limit, start int) []models.BookVo

author books info

func QueryAuthorBooksCount

func QueryAuthorBooksCount(authorid int) int

author books info

func QueryAuthors

func QueryAuthors(limit, start int) []models.Author

authors info

func QueryAuthorsCount

func QueryAuthorsCount() int64

all authors count

func QueryBook

func QueryBook(bookid int) models.BookVo

func QueryBookFile

func QueryBookFile(bookid int) (*os.File, error)

book's file

func QueryBookFileByte

func QueryBookFileByte(bookid int) []byte

book's file

func QueryBookRating

func QueryBookRating(bookid int) int

book's rating

func QueryBooks

func QueryBooks(limit, start int) []models.BookVo

all books info

func QueryBooksCount

func QueryBooksCount() int64

all books count

func QueryCoverImg

func QueryCoverImg(bookid int) []byte

book's img

func QueryDiscoverBooks

func QueryDiscoverBooks(limit, start int) []models.BookVo

discover books info

func QueryLanguageBooks

func QueryLanguageBooks(lang_code, limit, start int) []models.BookVo

languages books info

func QueryLanguageBooksCount

func QueryLanguageBooksCount(lang_code int) int

languages books info

func QueryLanguages

func QueryLanguages(limit, start int) []models.Language

languages info

func QueryLanguagesCount

func QueryLanguagesCount() int64

all languages count

func QueryNewBooks

func QueryNewBooks(limit, start int) []models.BookVo

new books info

func QueryRatingBooks

func QueryRatingBooks(limit, start int) []models.BookVo

rating books info

func QueryTagBooks

func QueryTagBooks(tagid, limit, start int) []models.BookVo

tag books info

func QueryTagBooksCount

func QueryTagBooksCount(tagid int) int

tag books info

func QueryTags

func QueryTags(limit, start int) []models.Tag

tags info

func QueryTagsCount

func QueryTagsCount() int64

all tags count

Types

This section is empty.

Jump to

Keyboard shortcuts

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