//
//  ZJBaseFileModel.h
//  RealEstateManagement
//
//  Created by Javen on 2017/2/13.
//  Copyright © 2017年 上海勾芒信息科技. All rights reserved.
//

#import "ZJBaseModel.h"

@interface ZJBaseFileModel : ZJBaseModel
@property (nonatomic, strong)  NSNumber <Ignore>  * size;

@property (nonatomic, strong)  NSString <Optional>  * idField;

@property (nonatomic, strong)  NSString <Optional>  * name;

/** 文件上传时的文件类型 */
@property (nonatomic, strong)  NSString <Ignore>  * mimeType;
/** 文件上传时的key(与后台约定) */
@property (nonatomic, strong)  NSString <Ignore>  * keyName;

@property (nonatomic, strong)  NSString <Ignore>  * localPath;

@property (nonatomic, strong)  NSString <Ignore>  * fileUrl;

@property (strong, nonatomic) UIImage <Ignore> * image;

@property (strong, nonatomic) NSData <Ignore> * data;

- (instancetype)initWithDictionary:(NSDictionary *)dict;



/**
 *  显示附件的图片
 *
 *  @param imageView 需要被显示的imageView
 */
- (void)setImageView:(UIImageView *)imageView;

/**
 *  获取文件的url
 *
 *  @param fileUrl 返回的url
 */
- (void)getFileUrlComplelet:(void (^)(NSString *fileUrl))fileUrl;
@end