MTBaseModel.h 536 B

123456789101112131415161718192021222324252627
  1. //
  2. // MTBaseModel.h
  3. //
  4. // Created by Simon on 2019/3/22.
  5. // Copyright © 2019 Simon. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "YYModel.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface MTBaseModel : NSObject
  11. @property (nonatomic, assign) NSInteger code;
  12. @property (nonatomic, assign) NSInteger is_login;
  13. @property (nonatomic, strong) id data;
  14. @property (nonatomic, copy) NSString *msg;
  15. - (void) clarifyResultWithSuccess:(void(^)(void))success failed:(void(^)(NSInteger code))failed;
  16. @end
  17. NS_ASSUME_NONNULL_END