ZJBaseModel.h 724 Bytes
Newer Older
Sandy's avatar
Sandy committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
//
//  ZJBaseModel.h
//  RealEstateManagement
//
//  Created by Javen on 2017/2/9.
//  Copyright © 2017年 上海勾芒信息科技. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JSONModel.h"
@interface ZJBaseModel : JSONModel
{
    //搜索的时候显示的名字,可以按需要重写set、get方法
    NSString *_zj_displayName;
}

- (NSString *)zj_displayName;
- (void)setZj_displayName:(NSString *)zj_displayName;


/**
 字典转模型
 
 @param dic 字典
 @return 转换之后的模型类
 */
+ (instancetype)modelWithDic:(NSDictionary *)dic;

/**
 模型转模型
 
 @param model 要转换的模型类
 @return 转换之后的模型类
 */
- (instancetype)modelWithModel:(id)model;

@end