新增书籍表、列表/搜索、管理员/馆员维护入口
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package com.mzh.library.dao;
|
||||
|
||||
import com.mzh.library.entity.Book;
|
||||
import com.mzh.library.entity.BookCategory;
|
||||
import com.mzh.library.entity.BookSearchCriteria;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
public interface BookDao {
|
||||
List<BookCategory> findAllCategories();
|
||||
|
||||
List<Book> search(BookSearchCriteria criteria);
|
||||
|
||||
Optional<Book> findById(long id);
|
||||
|
||||
Optional<Book> findByIdentifier(String identifier);
|
||||
|
||||
long create(Book book);
|
||||
|
||||
boolean update(Book book);
|
||||
|
||||
boolean delete(long id);
|
||||
}
|
||||
Reference in New Issue
Block a user