You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.1 KiB
48 lines
1.1 KiB
// |
|
// baseModel.h |
|
// babyTravel |
|
// |
|
// Created by xTT on 2016/9/29. |
|
// Copyright © 2016年 xTT. All rights reserved. |
|
// |
|
|
|
#import <Foundation/Foundation.h> |
|
#import <UIKit/UIKit.h> |
|
#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
|
|
|