Files
keyboard/keyBoard/Class/Home/M/KBCharacter.h

54 lines
1.4 KiB
C
Raw Normal View History

2025-12-03 18:19:51 +08:00
//
// KBCharacter.h
// 首页 - 排行榜角色模型MJExtension 解析)
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
/// 排行榜角色/角色卡片模型
2025-12-03 18:49:18 +08:00
/// 对应后端返回字段示例:
2025-12-03 18:19:51 +08:00
/// {
2025-12-03 18:49:18 +08:00
/// "id" : 29,
/// "download" : "0x4AQSfQS0",
/// "characterName" : "Ms.",
/// "avatarUrl" : "https://...",
/// "tag" : 490,
/// "characterBackground" : "d2EWHe1ST5",
/// "rank" : 899
2025-12-03 18:19:51 +08:00
/// }
@interface KBCharacter : NSObject
2025-12-04 19:12:34 +08:00
/// 首页用的ID也是人设ID
@property (nonatomic, copy, nullable) NSString *ID;
2025-12-03 18:19:51 +08:00
/// 唯一标识,对应后端的 id
@property (nonatomic, copy, nullable) NSString *characterId;
2025-12-03 18:49:18 +08:00
/// 名称,对应后端的 characterName
@property (nonatomic, copy, nullable) NSString *characterName;
2025-12-03 18:19:51 +08:00
/// 头像地址
@property (nonatomic, copy, nullable) NSString *avatarUrl;
2025-12-03 18:49:18 +08:00
/// 角色背景(颜色值、图片地址或后端定义的 key
@property (nonatomic, copy, nullable) NSString *characterBackground;
2025-12-03 18:19:51 +08:00
/// 下载量文案或数值(后端返回字符串)
@property (nonatomic, copy, nullable) NSString *download;
/// 标签(例如分类、类型)原样保存
@property (nonatomic, assign) NSInteger tag;
/// 排名序号1、2、3...
@property (nonatomic, assign) NSInteger rank;
@property (nonatomic, assign) BOOL added;
2025-12-04 15:35:23 +08:00
@property (nonatomic, copy) NSString *emoji;
2025-12-03 18:19:51 +08:00
@end
NS_ASSUME_NONNULL_END