YOUPAILZGameModel.m 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //
  2. // YOUPAILZGameModel.m
  3. // VQU
  4. //
  5. // Created by CY on 2021/4/26.
  6. // Copyright © 2021 leo. All rights reserved.
  7. //
  8. #import "YOUPAILZGameModel.h"
  9. @implementation YOUPAILZGameModel
  10. + (NSDictionary*)mj_objectClassInArray{
  11. return @{
  12. @"youpaipregions" : [YOUPAILZGamePropertyPublicModel class],
  13. @"youpaipprices" : [YOUPAILZGamePropertyPublicModel class],
  14. @"youpaipdans" : [YOUPAILZGamePropertyPublicModel class],
  15. };
  16. }
  17. -(BOOL)youpaifverifyGameInfo{
  18. BOOL result = YES;
  19. if (self.youpaipselectedImage == nil) {
  20. [ZCHUDHelper showTitle:@"请上传技能图"];
  21. result = NO;
  22. }else if(self.youpaipselectedLevel == nil){
  23. [ZCHUDHelper showTitle:@"请选择段位"];
  24. result = NO;
  25. }else if(self.youpaipselectedRegion == nil){
  26. [ZCHUDHelper showTitle:@"请选择大区"];
  27. result = NO;
  28. }else if(self.youpaipaudioUrl == nil){
  29. [ZCHUDHelper showTitle:@"请录制一段自我介绍语音"];
  30. result = NO;
  31. }
  32. return result;
  33. }
  34. + (NSDictionary *)mj_replacedKeyFromPropertyName
  35. {
  36. return @{
  37. @"youpaipid":@"id",
  38. @"youpaipname":@"name",
  39. @"youpaipcover":@"cover",
  40. @"youpaipexample_img":@"example_img",
  41. @"youpaipregions":@"regions",
  42. @"youpaipprices":@"prices",
  43. @"youpaipdans":@"dans",
  44. @"youpaipprice":@"price",
  45. @"youpaipapplying":@"applying",
  46. @"youpaipselectedImage":@"selectedImage",
  47. @"youpaipselectedRegion":@"selectedRegion",
  48. @"youpaipselectedPrice":@"selectedPrice",
  49. @"youpaipselectedLevel":@"selectedLevel",
  50. @"youpaipaudioUrl":@"audioUrl",
  51. @"youpaipaudioDuration":@"audioDuration",
  52. @"youpaipscreenshot":@"screenshot",
  53. @"youpaipmp3":@"mp3",
  54. };
  55. }
  56. @end