基础库
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ZhiyingCommNativeResult.m 597 B

4 년 전
12345678910111213141516171819202122232425262728293031323334
  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