基础库
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 

31 строка
792 B

  1. //
  2. // ZhiyingCommNativeResult.h
  3. // hairuyi_flutter_comm
  4. //
  5. // Created by Weller on 2020/5/16.
  6. //
  7. #import <Foundation/Foundation.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. #define NativeCommandSuccess(msg) [[ZhiyingCommNativeResult alloc] initWithMsg:msg success:YES]
  10. #define NativeCommandFailed(msg) [[ZhiyingCommNativeResult alloc] initWithMsg: msg success: NO]
  11. #define NativeCommandNotImp [[ZhiyingCommNativeResult alloc] initWithMsg: @"native调用失败" success: NO]
  12. @interface ZhiyingCommNativeResult : NSObject
  13. // 状态
  14. @property (nonatomic, assign) BOOL success;
  15. // 消息
  16. @property (nonatomic, copy) NSString *msg;
  17. @property (nonatomic, strong) NSDictionary* data;
  18. - (instancetype)initWithMsg: (NSString*)msg success: (BOOL) success;
  19. - (NSDictionary*)toDict;
  20. @end
  21. NS_ASSUME_NONNULL_END