This commit is contained in:
2025-12-03 19:00:55 +08:00
parent 1d6371c37e
commit 25edf2d817
7 changed files with 162 additions and 37 deletions

View 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

View File

@@ -0,0 +1,17 @@
//
// KBTag.m
//
#import "KBTag.h"
#import <MJExtension/MJExtension.h>
@implementation KBTag
+ (NSDictionary *)mj_replacedKeyFromPropertyName {
return @{
@"tagId": @"id",
};
}
@end