//
//  QueryModel.h
//  total
//
//  Created by 曹云霄 on 2017/1/9.
//  Copyright © 2017年 Delevin. All rights reserved.
//

#import <JSONModel/JSONModel.h>



@class Orders,Condition;
@protocol Orders @end
@protocol Condition @end


@interface QueryModel : JSONModel

@property (nonatomic, strong) NSArray<Orders> *orders;
@property (nonatomic, assign) NSInteger pageNumber;
@property (nonatomic, assign) NSInteger pageSize;
@property (nonatomic, strong) NSArray<Condition> *conditions;

@end




@interface Orders : JSONModel

@property (nonatomic, copy) NSString *field;
@property (nonatomic, copy) NSString *direction;

@end




@interface Condition : JSONModel

@property (nonatomic, copy) NSString *operation;
@property (nonatomic, strong) NSArray<NSString *>*parameters;

@end

