1
This commit is contained in:
27
keyBoard/Class/Home/M/KBTag.h
Normal file
27
keyBoard/Class/Home/M/KBTag.h
Normal file
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// KBTag.h
|
||||
// 排行榜标签模型
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/// 首页排行榜标签模型
|
||||
/// 对应后端 /tag/list 返回的单个元素:
|
||||
/// {
|
||||
/// "id": 0,
|
||||
/// "tagName": ""
|
||||
/// }
|
||||
@interface KBTag : NSObject
|
||||
|
||||
/// 标签 id(后端字段 id)
|
||||
@property (nonatomic, copy, nullable) NSString *tagId;
|
||||
|
||||
/// 标签名称(后端字段 tagName)
|
||||
@property (nonatomic, copy, nullable) NSString *tagName;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
17
keyBoard/Class/Home/M/KBTag.m
Normal file
17
keyBoard/Class/Home/M/KBTag.m
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// KBTag.m
|
||||
//
|
||||
|
||||
#import "KBTag.h"
|
||||
#import <MJExtension/MJExtension.h>
|
||||
|
||||
@implementation KBTag
|
||||
|
||||
+ (NSDictionary *)mj_replacedKeyFromPropertyName {
|
||||
return @{
|
||||
@"tagId": @"id",
|
||||
};
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user