Documentation ¶
Index ¶
- func AddOrUpdateBook(bookInfo *entities.Book) (*entities.Book, error)
- func GetBook(id string) (*entities.Book, error)
- func GetBookAuthor(author string) (*entities.Book, error)
- func GetBookByIsbn(isbn string) (*entities.Book, error)
- func GetBookListBy(criteriaMap *hashmap.Map, pageSize int, pageNo int) (*datasources.PagedDataSource, error)
- func GetBookListByIsbn(isbnList *arraylist.List) ([]*entities.Book, error)
- func GetBookTitle(title string) ([]*entities.Book, error)
- func Sort(bookArray []*entities.Book) []*entities.Book
- type BookScoreSorter
- type SortBy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBookListBy ¶
func GetBookListBy(criteriaMap *hashmap.Map, pageSize int, pageNo int) (*datasources.PagedDataSource, error)
Types ¶
type BookScoreSorter ¶
type BookScoreSorter struct { Books []*entities.Book By func(b1 *entities.Book, b2 *entities.Book) bool }
func (*BookScoreSorter) Len ¶
func (this *BookScoreSorter) Len() int
func (*BookScoreSorter) Less ¶
func (this *BookScoreSorter) Less(b1, b2 int) bool
func (*BookScoreSorter) Swap ¶
func (this *BookScoreSorter) Swap(b1, b2 int)
Click to show internal directories.
Click to hide internal directories.