public class ApiResult implements Serializable{

    private int code; //
    private String errMsg; //
    private PageResult data; //

    public int getCode(){
        return code;
    }

    public void setCode(int code){
        this.code = code;
    }

    public String getErrMsg(){
        return errMsg;
    }

    public void setErrMsg(String errMsg){
        this.errMsg = errMsg;
    }

    public PageResult getData(){
        return data;
    }

    public void setData(PageResult data){
        this.data = data;
    }

}
public class PageResult implements Serializable{

    private int total; //总记录数
    private int pageCount; //页数
    private int currentPage; //当前页
    private int pageSize; //每页记录数
    private BookVO[] list; //列表数据
    private boolean hasMore; //是否还有更多

    public int getTotal(){
        return total;
    }

    public void setTotal(int total){
        this.total = total;
    }

    public int getPageCount(){
        return pageCount;
    }

    public void setPageCount(int pageCount){
        this.pageCount = pageCount;
    }

    public int getCurrentPage(){
        return currentPage;
    }

    public void setCurrentPage(int currentPage){
        this.currentPage = currentPage;
    }

    public int getPageSize(){
        return pageSize;
    }

    public void setPageSize(int pageSize){
        this.pageSize = pageSize;
    }

    public BookVO[] getList(){
        return list;
    }

    public void setList(BookVO[] list){
        this.list = list;
    }

    public boolean getHasMore(){
        return hasMore;
    }

    public void setHasMore(boolean hasMore){
        this.hasMore = hasMore;
    }

}
public class BookVO implements Serializable{

    private long bookId; //图书id
    private String bookName; //图书名称

    public long getBookId(){
        return bookId;
    }

    public void setBookId(long bookId){
        this.bookId = bookId;
    }

    public String getBookName(){
        return bookName;
    }

    public void setBookName(String bookName){
        this.bookName = bookName;
    }

}