1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // SPSBBaseNetworkModel.h
- // 我的社保
- //
- // Created by shanp on 2021/4/20.
- //
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface SPSBBaseNetworkModel : NSObject<NSCoding, NSCopying>
- #pragma mark - 字典转Model
- + (NSArray *)getModelListWithArray:(nullable NSArray *)array;
- + (id)getModelWithDictionary:(nullable NSDictionary *)dict;
- - (bool)handleDataWithDictionary:(nullable NSDictionary *)dict;
- - (id)getStringDataWithDictionary:(nullable NSDictionary *)dic variable:(NSString *)variable;
- //需要重写每个property时就按以下格式重写,key=>property
- // - (id)GETspsb_keyWithDictionary:(nullable NSDictionary *)dic key:(NSString *)key;
- - (bool)handleAdditionalProperty NS_REQUIRES_SUPER;
- #pragma mark - Model转字典
- + (NSArray *)getArray:(NSArray *)array;
- - (NSDictionary *)getDictionary;
- //需要重写每个property时就按以下格式重写,key=>property
- //- (id)GETStringWithspsb_key:(NSString *)key
- - (NSMutableDictionary *)handleAdditionalWithDic:(NSMutableDictionary *)dic NS_REQUIRES_SUPER;
- @end
- NS_ASSUME_NONNULL_END
|