Commit 05e058fe authored by 曹云霄's avatar 曹云霄

修改项说明:

parent c61266a9
//
// CustomImageBackView.h
// Lighting
//
// Created by 曹云霄 on 2016/12/8.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CustomImageBackView : UIView
@end
//
// CustomImageBackView.m
// Lighting
//
// Created by 曹云霄 on 2016/12/8.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "CustomImageBackView.h"
@implementation CustomImageBackView
- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
if (self = [super initWithCoder:aDecoder]) {
CGFloat width = 150;
CGFloat interval = 15;
for (int i=0; i<3; i++) {
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(i*width+i*interval, 0, width, self.height)];
imageView.backgroundColor = kMainBlueColor;
[self addSubview:imageView];
if (i == 2) {
//指示器
UILabel *instruction = [[UILabel alloc] initWithFrame:CGRectMake(width-50, self.height-15, 50, 15)];
instruction.text = @"共4张";
instruction.font = [UIFont systemFontOfSize:10];
instruction.textColor = [UIColor whiteColor];
instruction.textAlignment = NSTextAlignmentCenter;
instruction.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.3];
[imageView addSubview:instruction];
}
}
}
return self;
}
@end
......@@ -2,12 +2,16 @@
// ForumItemListViewController.h
// Lighting
//
// Created by 曹云霄 on 2016/11/25.
// Created by 曹云霄 on 2016/12/8.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "BaseViewController.h"
@interface ForumItemListViewController : UITableViewController
@interface ForumItemListViewController : BaseViewController
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@end
......@@ -2,13 +2,14 @@
// ForumItemListViewController.m
// Lighting
//
// Created by 曹云霄 on 2016/11/25.
// Created by 曹云霄 on 2016/12/8.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "ForumItemListViewController.h"
#import "ForumItemTableViewCell.h"
@interface ForumItemListViewController ()
@interface ForumItemListViewController ()<UITableViewDelegate,UITableViewDataSource>
@end
......@@ -17,82 +18,23 @@
- (void)viewDidLoad {
[super viewDidLoad];
// Uncomment the following line to preserve selection between presentations.
// self.clearsSelectionOnViewWillAppear = NO;
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
// self.navigationItem.rightBarButtonItem = self.editButtonItem;
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
#warning Incomplete implementation, return the number of sections
return 0;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
#warning Incomplete implementation, return the number of rows
return 0;
}
/*
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:<#@"reuseIdentifier"#> forIndexPath:indexPath];
// Configure the cell...
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
ForumItemTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ForumItemTableViewCell" forIndexPath:indexPath];
return cell;
}
*/
/*
// Override to support conditional editing of the table view.
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
// Return NO if you do not want the specified item to be editable.
return YES;
}
*/
/*
// Override to support editing the table view.
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
if (editingStyle == UITableViewCellEditingStyleDelete) {
// Delete the row from the data source
[tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
} else if (editingStyle == UITableViewCellEditingStyleInsert) {
// Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
}
}
*/
/*
// Override to support rearranging the table view.
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
}
*/
/*
// Override to support conditional rearranging of the table view.
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
// Return NO if you do not want the item to be re-orderable.
return YES;
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return 5;
}
*/
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return 250;
}
*/
@end
//
// ForumItemTableViewCell.h
// Lighting
//
// Created by 曹云霄 on 2016/12/8.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ForumItemTableViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *headerImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameAndDateLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;
@property (weak, nonatomic) IBOutlet UILabel *commentsNumberLabel;
@property (weak, nonatomic) IBOutlet UILabel *praiseNumberLabel;
@property (weak, nonatomic) IBOutlet CustomImageBackView *imageBackView;
@end
//
// ForumItemTableViewCell.m
// Lighting
//
// Created by 曹云霄 on 2016/12/8.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "ForumItemTableViewCell.h"
@implementation ForumItemTableViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
......@@ -26,4 +26,8 @@
*/
@property (weak, nonatomic) IBOutlet UILabel *forumDetailTitleLabel;
/**
数据源
*/
@property (nonatomic,strong) TOForumCategoryEntity *categoryEntity;
@end
......@@ -15,10 +15,14 @@
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
- (void)setCategoryEntity:(TOForumCategoryEntity *)categoryEntity
{
_categoryEntity = categoryEntity;
if (_categoryEntity) {
[self.forumImageView sd_setImageWithURL:[NSURL URLWithString:_categoryEntity.attachment.fileUrl] placeholderImage:ReplaceImage];
self.forumTitleLabel.text = _categoryEntity.name;
self.forumDetailTitleLabel.text = _categoryEntity.fdescription;
}
}
@end
......@@ -8,9 +8,13 @@
#import "ForumViewController.h"
#import "ForumTableViewCell.h"
#import "ForumItemListViewController.h"
@interface ForumViewController ()<UITableViewDelegate,UITableViewDataSource>
@property (nonatomic,strong) ForumCategoryResponse *category;
@end
@implementation ForumViewController
......@@ -36,10 +40,10 @@
[XBLoadingView showHUDViewWithDefault];;
[[NetworkRequestClassManager Manager] NetworkWithDictionaryRequestWithURL:SERVERREQUESTURL(FORUMTYPS) WithRequestType:ONE WithParameter:nil WithReturnValueBlock:^(id returnValue) {
NSLog(@"%@",returnValue);
[XBLoadingView hideHUDViewWithDefault];
if ([returnValue[@"code"] isEqualToNumber:@0]) {
weakSelf.category = [[ForumCategoryResponse alloc] initWithDictionary:returnValue[@"data"] error:nil];
[weakSelf.forumTableView reloadData];
}else{
[XBLoadingView showHUDViewWithText:returnValue[@"message"]];
}
......@@ -52,17 +56,19 @@
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
ForumTableViewCell *forumCell = [tableView dequeueReusableCellWithIdentifier:@"ForumTableViewCell" forIndexPath:indexPath];
forumCell.categoryEntity = self.category.categories[indexPath.row];
return forumCell;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return 10;
return self.category.categories.count;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
ForumItemListViewController *itemListVc = [[[self class] getLearningCenterStoryboardClass] instantiateViewControllerWithIdentifier:@"ForumItemListViewController"];
[self.navigationController pushViewController:itemListVc animated:YES];
}
......
......@@ -68,7 +68,6 @@
2936F29A1D01868E007CA67C /* ShareGoodsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2936F2981D01868E007CA67C /* ShareGoodsViewController.m */; };
2936F29B1D01868E007CA67C /* ShareGoodsViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2936F2991D01868E007CA67C /* ShareGoodsViewController.xib */; };
2940AE7D1DE7D2F0001164B0 /* ForumTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 2940AE7C1DE7D2F0001164B0 /* ForumTableViewCell.m */; };
2940AE801DE7D66B001164B0 /* ForumItemListViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2940AE7F1DE7D66B001164B0 /* ForumItemListViewController.m */; };
2940AE831DE7E1D1001164B0 /* VideoHelperViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2940AE821DE7E1D1001164B0 /* VideoHelperViewController.m */; };
2940AE861DE7FCDB001164B0 /* VideoListViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2940AE851DE7FCDB001164B0 /* VideoListViewController.m */; };
2940AE891DE7FCE4001164B0 /* VideoDetailViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2940AE881DE7FCE4001164B0 /* VideoDetailViewController.m */; };
......@@ -196,6 +195,9 @@
29A974CA1D72F9C80012AFA1 /* RebateSuccessTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 29A974C91D72F9C80012AFA1 /* RebateSuccessTableViewController.m */; };
29A9DCAE1CEB643C00A7567A /* CustomWKWebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 29A9DCAC1CEB643C00A7567A /* CustomWKWebViewController.m */; };
29ABA6EA1DE686D5007D8012 /* WkWebViewViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 29ABA6E91DE686D5007D8012 /* WkWebViewViewController.m */; };
29ACDAE31DF966EF003A0634 /* ForumItemListViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 29ACDAE21DF966EF003A0634 /* ForumItemListViewController.m */; };
29ACDAE61DF9696E003A0634 /* CustomImageBackView.m in Sources */ = {isa = PBXBuildFile; fileRef = 29ACDAE51DF9696E003A0634 /* CustomImageBackView.m */; };
29ACDAE91DF96C50003A0634 /* ForumItemTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 29ACDAE81DF96C50003A0634 /* ForumItemTableViewCell.m */; };
29B3EE711DCE16130065FCCF /* LuckyDrawViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B3EE701DCE16130065FCCF /* LuckyDrawViewController.m */; };
29BAA3AB1DC9FB5B00927D04 /* PromptTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 29BAA3AA1DC9FB5B00927D04 /* PromptTableViewCell.m */; };
29BB27681CD9D38E009A0813 /* AllpriceTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 29BB27671CD9D38E009A0813 /* AllpriceTableViewCell.m */; };
......@@ -383,8 +385,6 @@
2936F2991D01868E007CA67C /* ShareGoodsViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ShareGoodsViewController.xib; sourceTree = "<group>"; };
2940AE7B1DE7D2F0001164B0 /* ForumTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ForumTableViewCell.h; sourceTree = "<group>"; };
2940AE7C1DE7D2F0001164B0 /* ForumTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ForumTableViewCell.m; sourceTree = "<group>"; };
2940AE7E1DE7D66B001164B0 /* ForumItemListViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ForumItemListViewController.h; sourceTree = "<group>"; };
2940AE7F1DE7D66B001164B0 /* ForumItemListViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ForumItemListViewController.m; sourceTree = "<group>"; };
2940AE811DE7E1D1001164B0 /* VideoHelperViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VideoHelperViewController.h; sourceTree = "<group>"; };
2940AE821DE7E1D1001164B0 /* VideoHelperViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VideoHelperViewController.m; sourceTree = "<group>"; };
2940AE841DE7FCDB001164B0 /* VideoListViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VideoListViewController.h; sourceTree = "<group>"; };
......@@ -636,6 +636,12 @@
29A9DCAC1CEB643C00A7567A /* CustomWKWebViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CustomWKWebViewController.m; sourceTree = "<group>"; };
29ABA6E81DE686D5007D8012 /* WkWebViewViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WkWebViewViewController.h; sourceTree = "<group>"; };
29ABA6E91DE686D5007D8012 /* WkWebViewViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WkWebViewViewController.m; sourceTree = "<group>"; };
29ACDAE11DF966EF003A0634 /* ForumItemListViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ForumItemListViewController.h; sourceTree = "<group>"; };
29ACDAE21DF966EF003A0634 /* ForumItemListViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ForumItemListViewController.m; sourceTree = "<group>"; };
29ACDAE41DF9696E003A0634 /* CustomImageBackView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomImageBackView.h; sourceTree = "<group>"; };
29ACDAE51DF9696E003A0634 /* CustomImageBackView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CustomImageBackView.m; sourceTree = "<group>"; };
29ACDAE71DF96C50003A0634 /* ForumItemTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ForumItemTableViewCell.h; sourceTree = "<group>"; };
29ACDAE81DF96C50003A0634 /* ForumItemTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ForumItemTableViewCell.m; sourceTree = "<group>"; };
29B3EE6F1DCE16130065FCCF /* LuckyDrawViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LuckyDrawViewController.h; sourceTree = "<group>"; };
29B3EE701DCE16130065FCCF /* LuckyDrawViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LuckyDrawViewController.m; sourceTree = "<group>"; };
29BAA3A91DC9FB5B00927D04 /* PromptTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PromptTableViewCell.h; sourceTree = "<group>"; };
......@@ -1721,8 +1727,8 @@
children = (
2999B12D1DE6CD730031F79E /* ForumViewController.h */,
2999B12E1DE6CD730031F79E /* ForumViewController.m */,
2940AE7E1DE7D66B001164B0 /* ForumItemListViewController.h */,
2940AE7F1DE7D66B001164B0 /* ForumItemListViewController.m */,
29ACDAE11DF966EF003A0634 /* ForumItemListViewController.h */,
29ACDAE21DF966EF003A0634 /* ForumItemListViewController.m */,
);
name = Controllers;
sourceTree = "<group>";
......@@ -1732,6 +1738,10 @@
children = (
2940AE7B1DE7D2F0001164B0 /* ForumTableViewCell.h */,
2940AE7C1DE7D2F0001164B0 /* ForumTableViewCell.m */,
29ACDAE71DF96C50003A0634 /* ForumItemTableViewCell.h */,
29ACDAE81DF96C50003A0634 /* ForumItemTableViewCell.m */,
29ACDAE41DF9696E003A0634 /* CustomImageBackView.h */,
29ACDAE51DF9696E003A0634 /* CustomImageBackView.m */,
);
name = Cells;
sourceTree = "<group>";
......@@ -2489,7 +2499,6 @@
2971E9791DF662A700256567 /* AssessmentHeaderView.m in Sources */,
2980AEC51D0D0B10001AA4A3 /* opple_objc_json_client.m in Sources */,
2940AE831DE7E1D1001164B0 /* VideoHelperViewController.m in Sources */,
2940AE801DE7D66B001164B0 /* ForumItemListViewController.m in Sources */,
296287A21DF7DD230056FDC1 /* CustomTOStudyTopicEntity.m in Sources */,
2916A7521D70557400644C8C /* PaymentsDetailsTableViewController.m in Sources */,
29E2D3241DB878F200443170 /* XLPlainFlowLayout.m in Sources */,
......@@ -2516,6 +2525,7 @@
29D260F51CEEAE2800A9787D /* FullScreenViewController.m in Sources */,
292AD2041DE30A5F003EC56E /* IntegralDetailsTableViewCell.m in Sources */,
2985AEA31CE72F1500704C91 /* NSObject+ZXPUnicode.m in Sources */,
29ACDAE61DF9696E003A0634 /* CustomImageBackView.m in Sources */,
29837B501DE58BAE009CF614 /* PrizeExchangeCourierTableViewCell.m in Sources */,
29EAAE951CDC414C00C4DBA2 /* SeceneLibraryCollectionViewCell.m in Sources */,
2940AE7D1DE7D2F0001164B0 /* ForumTableViewCell.m in Sources */,
......@@ -2574,6 +2584,7 @@
2928F8321CD09E320036D761 /* Toolview.m in Sources */,
2936F28C1D014147007CA67C /* sceneScreeningCollectionViewCell.m in Sources */,
2942F8A61CDD80C2005B377E /* authenticateView.m in Sources */,
29ACDAE31DF966EF003A0634 /* ForumItemListViewController.m in Sources */,
2940AE861DE7FCDB001164B0 /* VideoListViewController.m in Sources */,
291D6A581CFFD45F007891AE /* SceneSectionHeaderView.m in Sources */,
2986B9A71DE1D30700F4A1CF /* PromotionLuckDrawResultModel.m in Sources */,
......@@ -2673,6 +2684,7 @@
29D260F81CEEAF2D00A9787D /* FullScreenViewCell.m in Sources */,
295DEAC21DB786B8006ED4A6 /* CardDontUseViewController.m in Sources */,
29E944521DE413D6007CD26C /* ApplyPrizeViewController.m in Sources */,
29ACDAE91DF96C50003A0634 /* ForumItemTableViewCell.m in Sources */,
292AD2001DE309C1003EC56E /* IntegralDetailsViewController.m in Sources */,
297BA2CB1DE94D3300474F79 /* VIResourceLoadingRequestWorker.m in Sources */,
29E944561DE45529007CD26C /* PrizeExchangeBillTableViewCell.m in Sources */,
......
This diff is collapsed.
......@@ -47,6 +47,7 @@
#import "CustomTOStudyTopicEntity.h"
#import "CustomTOPassLevelTopicEntity.h"
#import "CustomTOPassLevelTopicOptionEntity.h"
#import "CustomImageBackView.h"
......
......@@ -217,7 +217,9 @@ extern NSString * const GRADEMETHOD_MANUL;
@class ModifyPasswordRequest;
@class LoginInfo;
@class ConsumerQueryCondition;
@class ForumCategoryResponse;
@class ExceptionCode;
@class TOForumCategoryEntity;
@class EarningsResponse;
@class AfficheCondition;
@class PrizeResponse;
......@@ -267,6 +269,7 @@ extern NSString * const GRADEMETHOD_MANUL;
@protocol GoodsFilter @end
@protocol GroupByOrderNumber @end
@protocol RsJingDongECardRequest @end
@protocol TOForumCategoryEntity @end
@protocol RsSimpleJingDongECardRequest @end
@protocol LotteryDrawResponse @end
@protocol RsLotteryRequest @end
......@@ -323,6 +326,7 @@ extern NSString * const GRADEMETHOD_MANUL;
@protocol TOGoodsCategoryEntity @end
@protocol VOResellerGoodsEntity @end
@protocol TOGoodsEntity @end
@protocol ForumCategoryResponse @end
@protocol TOForumReplyEntity @end
@protocol TOCommissionHistEntity @end
@protocol TOApplyBillEntity @end
......@@ -653,6 +657,18 @@ extern NSString * const GRADEMETHOD_MANUL;
@property (nonatomic, copy) NSString *fnewPassword;
@end /* interface ResetPasswordRequest */
/**
* (no documentation provided)
*/
@interface ForumCategoryResponse : JSONModel
/**
* (no documentation provided)
* @see TOForumCategoryEntity
*
*/
@property (nonatomic, strong) NSArray<TOForumCategoryEntity> *categories;
@end /* interface ForumCategoryResponse */
/**
......@@ -1700,6 +1716,48 @@ extern NSString * const GRADEMETHOD_MANUL;
@property (nonatomic, copy) NSString *company;
@end /* interface TOConsumerEntity */
/**
*
@Title: Entity
@Description: 讨论主题分类
@author onlineGenerator
@date 2016-12-04 12:08:42
@version V1.0
*/
@interface TOForumCategoryEntity : JSONModel
/**
* 方法: 取得主键
*
*
*/
@property (nonatomic, copy) NSString *fid;
/**
* 方法: 取得类别
*
*
*/
@property (nonatomic, copy) NSString *name;
/**
* 方法: 取得描述
*
*
*/
@property (nonatomic, copy) NSString *fdescription;
/**
* 方法: 取得附件id
*
*
*/
@property (nonatomic, copy) NSString *attachmentId;
/**
* 附件
*
*
*/
@property (nonatomic, strong) TOAttachmentEntity *attachment;
@end /* interface TOForumCategoryEntity */
/**
......
......@@ -871,6 +871,41 @@ NSString * const PASSLEVELTOPICTYPE_SHORTANSWER = @"shortAnswer";
@end
@implementation ForumCategoryResponse
@synthesize categories;
+(BOOL)propertyIsOptional:(NSString*)propertyName
{
return YES;
}
@end
@implementation TOForumCategoryEntity
@synthesize fid;
@synthesize name;
@synthesize fdescription;
@synthesize attachmentId;
@synthesize attachment;
+(BOOL)propertyIsOptional:(NSString*)propertyName
{
return YES;
}
+(JSONKeyMapper*)keyMapper
{
return [[JSONKeyMapper alloc] initWithDictionary:@{
@"description": @"fdescription",
@"id": @"fid",
}];
}
@end
@implementation TOPassLevelResultDetailEntity
@synthesize fid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment