public class ApiResult implements Serializable{ private BookDetailVO body; // private int code; // private String errMsg; // private BookDetailVO data; // private enum errType; // [SUCCESS,WARN,ERROR] public BookDetailVO getBody(){ return body; } public void setBody(BookDetailVO body){ this.body = body; } 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 BookDetailVO getData(){ return data; } public void setData(BookDetailVO data){ this.data = data; } public enum getErrType(){ return errType; } public void setErrType(enum errType){ this.errType = errType; } }
public class BookDetailVO implements Serializable{ private long bookId; //图书id private String bookName; //图书名称 private BookPrice price; // private int storeCount; //馆藏数量 private string[] pictures; //图片 private UserVO owner; // 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; } public BookPrice getPrice(){ return price; } public void setPrice(BookPrice price){ this.price = price; } public int getStoreCount(){ return storeCount; } public void setStoreCount(int storeCount){ this.storeCount = storeCount; } public string[] getPictures(){ return pictures; } public void setPictures(string[] pictures){ this.pictures = pictures; } public UserVO getOwner(){ return owner; } public void setOwner(UserVO owner){ this.owner = owner; } }
public class BookPrice implements Serializable{ private double price; //价格 private int country; //国家 public double getPrice(){ return price; } public void setPrice(double price){ this.price = price; } public int getCountry(){ return country; } public void setCountry(int country){ this.country = country; } }
public class UserVO implements Serializable{ private String userId; //用户id private String userName; //用户名 private SimpleUser friend; // private SimpleUser[] friends; //好友 private BookVO[] readBooks; //阅读图书 private boolean isFollow; //是否关注 private UserVO[] follower; // public String getUserId(){ return userId; } public void setUserId(String userId){ this.userId = userId; } public String getUserName(){ return userName; } public void setUserName(String userName){ this.userName = userName; } public SimpleUser getFriend(){ return friend; } public void setFriend(SimpleUser friend){ this.friend = friend; } public SimpleUser[] getFriends(){ return friends; } public void setFriends(SimpleUser[] friends){ this.friends = friends; } public BookVO[] getReadBooks(){ return readBooks; } public void setReadBooks(BookVO[] readBooks){ this.readBooks = readBooks; } public boolean getIsFollow(){ return isFollow; } public void setIsFollow(boolean isFollow){ this.isFollow = isFollow; } public UserVO[] getFollower(){ return follower; } public void setFollower(UserVO[] follower){ this.follower = follower; } }
public class SimpleUser implements Serializable{ private String userId; //用户id private String userName; //用户名 private SimpleUser friend; // public String getUserId(){ return userId; } public void setUserId(String userId){ this.userId = userId; } public String getUserName(){ return userName; } public void setUserName(String userName){ this.userName = userName; } public SimpleUser getFriend(){ return friend; } public void setFriend(SimpleUser friend){ this.friend = friend; } }
public class BookVO implements Serializable{ private long bookId; //图书id private String bookName; //图书名称 private BookPrice price; // 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; } public BookPrice getPrice(){ return price; } public void setPrice(BookPrice price){ this.price = price; } }
public class BookPrice implements Serializable{ private double price; //价格 private int country; //国家 public double getPrice(){ return price; } public void setPrice(double price){ this.price = price; } public int getCountry(){ return country; } public void setCountry(int country){ this.country = country; } }
public class BookDetailVO implements Serializable{ private long bookId; //图书id private String bookName; //图书名称 private BookPrice price; // private int storeCount; //馆藏数量 private string[] pictures; //图片 private UserVO owner; // 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; } public BookPrice getPrice(){ return price; } public void setPrice(BookPrice price){ this.price = price; } public int getStoreCount(){ return storeCount; } public void setStoreCount(int storeCount){ this.storeCount = storeCount; } public string[] getPictures(){ return pictures; } public void setPictures(string[] pictures){ this.pictures = pictures; } public UserVO getOwner(){ return owner; } public void setOwner(UserVO owner){ this.owner = owner; } }
public class BookPrice implements Serializable{ private double price; //价格 private int country; //国家 public double getPrice(){ return price; } public void setPrice(double price){ this.price = price; } public int getCountry(){ return country; } public void setCountry(int country){ this.country = country; } }
public class UserVO implements Serializable{ private String userId; //用户id private String userName; //用户名 private SimpleUser friend; // private SimpleUser[] friends; //好友 private BookVO[] readBooks; //阅读图书 private boolean isFollow; //是否关注 private UserVO[] follower; // public String getUserId(){ return userId; } public void setUserId(String userId){ this.userId = userId; } public String getUserName(){ return userName; } public void setUserName(String userName){ this.userName = userName; } public SimpleUser getFriend(){ return friend; } public void setFriend(SimpleUser friend){ this.friend = friend; } public SimpleUser[] getFriends(){ return friends; } public void setFriends(SimpleUser[] friends){ this.friends = friends; } public BookVO[] getReadBooks(){ return readBooks; } public void setReadBooks(BookVO[] readBooks){ this.readBooks = readBooks; } public boolean getIsFollow(){ return isFollow; } public void setIsFollow(boolean isFollow){ this.isFollow = isFollow; } public UserVO[] getFollower(){ return follower; } public void setFollower(UserVO[] follower){ this.follower = follower; } }
public class SimpleUser implements Serializable{ private String userId; //用户id private String userName; //用户名 private SimpleUser friend; // public String getUserId(){ return userId; } public void setUserId(String userId){ this.userId = userId; } public String getUserName(){ return userName; } public void setUserName(String userName){ this.userName = userName; } public SimpleUser getFriend(){ return friend; } public void setFriend(SimpleUser friend){ this.friend = friend; } }
public class BookVO implements Serializable{ private long bookId; //图书id private String bookName; //图书名称 private BookPrice price; // 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; } public BookPrice getPrice(){ return price; } public void setPrice(BookPrice price){ this.price = price; } }
public class BookPrice implements Serializable{ private double price; //价格 private int country; //国家 public double getPrice(){ return price; } public void setPrice(double price){ this.price = price; } public int getCountry(){ return country; } public void setCountry(int country){ this.country = country; } }