#import ;
@interface ApiResult : NSObject
//
@property (nonatomic, strong) PageResult body;
//
@property (nonatomic, strong) NSInteger code;
//
@property (nonatomic, assign) NSString errMsg;
//
@property (nonatomic, strong) PageResult data;
// [SUCCESS,WARN,ERROR]
@property (nonatomic, strong) enum errType;
@end
#import ;
@interface PageResult : NSObject
//总记录数
@property (nonatomic, strong) NSInteger total;
//页数
@property (nonatomic, strong) NSInteger pageCount;
//当前页
@property (nonatomic, strong) NSInteger currentPage;
//每页记录数
@property (nonatomic, strong) NSInteger pageSize;
//列表数据
@property (nonatomic, strong) BookVO[] list;
//是否还有更多
@property (nonatomic, strong) BOOL hasMore;
@end
#import ;
@interface BookVO : NSObject
//图书id
@property (nonatomic, strong) long bookId;
//图书名称
@property (nonatomic, assign) NSString bookName;
//
@property (nonatomic, strong) BookPrice price;
@end
#import ;
@interface BookPrice : NSObject
//价格
@property (nonatomic, strong) double price;
//国家
@property (nonatomic, strong) NSInteger country;
@end
#import ;
@interface PageResult : NSObject
//总记录数
@property (nonatomic, strong) NSInteger total;
//页数
@property (nonatomic, strong) NSInteger pageCount;
//当前页
@property (nonatomic, strong) NSInteger currentPage;
//每页记录数
@property (nonatomic, strong) NSInteger pageSize;
//列表数据
@property (nonatomic, strong) BookVO[] list;
//是否还有更多
@property (nonatomic, strong) BOOL hasMore;
@end
#import ;
@interface BookVO : NSObject
//图书id
@property (nonatomic, strong) long bookId;
//图书名称
@property (nonatomic, assign) NSString bookName;
//
@property (nonatomic, strong) BookPrice price;
@end
#import ;
@interface BookPrice : NSObject
//价格
@property (nonatomic, strong) double price;
//国家
@property (nonatomic, strong) NSInteger country;
@end