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

29 regels
497 B

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