Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IBookService ¶
type IBookService interface { // Book AddOrUpdateBook(bookInfo *entities.Book) (*entities.Book, error) GetBook(id string) (*entities.Book, error) GetBookByIsbn(isbn string) (*entities.Book, error) GetBookByAuthor(author string) (*entities.Book, error) GetBookByTitle(title string) ([]*entities.Book, error) GetBookListBy(criteriaMap *hashmap.Map) (*datasources.DataSource, error) PagedGetBookListBy(criteriaMap *hashmap.Map, pageSize int, pageNo int) (*datasources.PagedDataSource, error) // Buy record AddBuyRecord(*entities.BuyRecord) (*entities.BuyRecord, error) GetBuyRecordBy(criteriaMap *hashmap.Map) (*datasources.DataSource, error) PagedGetBuyRecordBy(criteriaMap *hashmap.Map, pageSize int, pageNo int) (*datasources.PagedDataSource, error) // Rank GetRankInIsbn(isbnList *arraylist.List) ([]*entities.Book, error) RemoveDuplicate() error }
type ICalisApiService ¶
type IDefaultService ¶
type IDoubanApiService ¶
type ISearchService ¶
type ISearchService interface { SearchBook(keyword string, criteriaMap *hashmap.Map, pageSize int, pageNo int) (*datasources.PagedDataSource, error) SearchBookByQuery(query elastic.Query, pageSize int, pageNo int) (*datasources.PagedDataSource, error) DeleteAllBook() (int64, error) SyncBook() (int64, int64, error) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.