12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- //
- // YOUPAILZGameModel.m
- // VQU
- //
- // Created by CY on 2021/4/26.
- // Copyright © 2021 leo. All rights reserved.
- //
- #import "YOUPAILZGameModel.h"
- @implementation YOUPAILZGameModel
- + (NSDictionary*)mj_objectClassInArray{
- return @{
- @"youpaipregions" : [YOUPAILZGamePropertyPublicModel class],
- @"youpaipprices" : [YOUPAILZGamePropertyPublicModel class],
- @"youpaipdans" : [YOUPAILZGamePropertyPublicModel class],
- };
- }
- -(BOOL)youpaifverifyGameInfo{
- BOOL result = YES;
- if (self.youpaipselectedImage == nil) {
- [ZCHUDHelper showTitle:@"请上传技能图"];
- result = NO;
- }else if(self.youpaipselectedLevel == nil){
- [ZCHUDHelper showTitle:@"请选择段位"];
- result = NO;
- }else if(self.youpaipselectedRegion == nil){
- [ZCHUDHelper showTitle:@"请选择大区"];
- result = NO;
- }else if(self.youpaipaudioUrl == nil){
- [ZCHUDHelper showTitle:@"请录制一段自我介绍语音"];
- result = NO;
- }
- return result;
- }
- + (NSDictionary *)mj_replacedKeyFromPropertyName
- {
- return @{
- @"youpaipid":@"id",
- @"youpaipname":@"name",
- @"youpaipcover":@"cover",
- @"youpaipexample_img":@"example_img",
- @"youpaipregions":@"regions",
- @"youpaipprices":@"prices",
- @"youpaipdans":@"dans",
- @"youpaipprice":@"price",
- @"youpaipapplying":@"applying",
- @"youpaipselectedImage":@"selectedImage",
- @"youpaipselectedRegion":@"selectedRegion",
- @"youpaipselectedPrice":@"selectedPrice",
- @"youpaipselectedLevel":@"selectedLevel",
- @"youpaipaudioUrl":@"audioUrl",
- @"youpaipaudioDuration":@"audioDuration",
- @"youpaipscreenshot":@"screenshot",
- @"youpaipmp3":@"mp3",
- };
- }
- @end
|