基础库
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.
 
 
 
 
 

35 lines
597 B

  1. //
  2. // ZhiyingCommNativeResult.m
  3. // hairuyi_flutter_comm
  4. //
  5. // Created by Weller on 2020/5/16.
  6. //
  7. #import "ZhiyingCommNativeResult.h"
  8. @interface ZhiyingCommNativeResult()
  9. @end
  10. @implementation ZhiyingCommNativeResult
  11. - (instancetype)initWithMsg: (NSString*)msg success: (BOOL) success
  12. {
  13. self = [super init];
  14. if (self) {
  15. _msg = msg == nil ? @"" : msg;
  16. _success = success;
  17. }
  18. return self;
  19. }
  20. - (NSDictionary*)toDict {
  21. return @{@"success" : _success ? @"1" : @"0",
  22. @"msg" : _msg,
  23. @"data" : _data == nil ? @{} : _data
  24. };
  25. }
  26. @end