add 题目
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// ExercisesModel.h
|
||||
// GIGA
|
||||
//
|
||||
// Created by lianxiang on 2018/9/11.
|
||||
// Copyright © 2018年 com.giga.ios. All rights reserved.
|
||||
//
|
||||
|
||||
#import <JSONModel/JSONModel.h>
|
||||
|
||||
//内层模型
|
||||
//@protocol QustionAnswer//内层模型协议
|
||||
//@end
|
||||
@class QustionAnswer;
|
||||
|
||||
@interface QustionAnswer:JSONModel
|
||||
@property (nonatomic,copy) NSString *answer;
|
||||
@property (nonatomic,assign) int bsjz;
|
||||
@property (nonatomic,copy) NSString *createTime;
|
||||
@property (nonatomic,assign) int dryness;
|
||||
@property (nonatomic,assign) int fx;
|
||||
|
||||
|
||||
|
||||
@end
|
||||
|
||||
//外层模型
|
||||
@interface ExercisesModel : JSONModel
|
||||
|
||||
@property (nonatomic,strong) NSMutableArray<QustionAnswer *>* answerList;
|
||||
@property (nonatomic,assign) int questionType;
|
||||
@property (nonatomic,assign) int sortNum;
|
||||
@property (nonatomic,copy) NSString *remark;
|
||||
@property (nonatomic,copy) NSString *question;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// ExercisesModel.m
|
||||
// GIGA
|
||||
//
|
||||
// Created by lianxiang on 2018/9/11.
|
||||
// Copyright © 2018年 com.giga.ios. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ExercisesModel.h"
|
||||
|
||||
@implementation ExercisesModel
|
||||
//+(JSONKeyMapper *)keyMapper{
|
||||
// return [[JSONKeyMapper alloc] initWithModelToJSONDictionary:@{@"id":@"answer_id"}];
|
||||
//}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user