// // baseModel.h // babyTravel // // Created by xTT on 2016/9/29. // Copyright © 2016年 xTT. All rights reserved. // #import #import #import "MJExtension.h" #import "myHelper.h" #import "MyHttp.h" #import "UIImageView+WebCache.h" @interface baseModel : NSObject @property (nonatomic, strong) NSString *id; @property (nonatomic, strong) NSNumber *status; @property (nonatomic, strong) NSString *name; @property (nonatomic, strong) NSString *phone; @property (nonatomic, strong) UIImage *image; @property (nonatomic, strong) NSString *avator; @property (nonatomic, strong) NSNumber *timestamp; @property (nonatomic, strong) void (^block)(); - (void)setDefaultValue; + (void)getObjsSuccess:(void (^)(NSMutableArray *arr))success failure:(void (^)(NSError *error))failure; + (void)getObjsWithID:(NSString *)ID success:(void (^)(NSMutableArray *arr))success failure:(void (^)(NSError *error))failure; - (void)saveSuccess:(void (^)())success failure:(void (^)())failure; - (void)deleteSuccess:(void (^)())success failure:(void (^)())failure; @end