This commit is contained in:
2025-12-03 18:49:18 +08:00
parent 6f02bc7cf5
commit 82123fc232
3 changed files with 98 additions and 41 deletions

View File

@@ -8,30 +8,30 @@
NS_ASSUME_NONNULL_BEGIN
/// 排行榜角色/角色卡片模型
/// 对应后端返回字段:
/// 对应后端返回字段示例
/// {
/// "id": 0,
/// "title": "",
/// "characterBackground": "",
/// "avatarUrl": "",
/// "download": "",
/// "tag": 0,
/// "rank": 0
/// "id" : 29,
/// "download" : "0x4AQSfQS0",
/// "characterName" : "Ms.",
/// "avatarUrl" : "https://...",
/// "tag" : 490,
/// "characterBackground" : "d2EWHe1ST5",
/// "rank" : 899
/// }
@interface KBCharacter : NSObject
/// 唯一标识,对应后端的 id
@property (nonatomic, copy, nullable) NSString *characterId;
/// 标题/名称
@property (nonatomic, copy, nullable) NSString *title;
/// 角色背景(颜色值、图片地址或后端定义的 key
@property (nonatomic, copy, nullable) NSString *characterBackground;
/// 名称,对应后端的 characterName
@property (nonatomic, copy, nullable) NSString *characterName;
/// 头像地址
@property (nonatomic, copy, nullable) NSString *avatarUrl;
/// 角色背景(颜色值、图片地址或后端定义的 key
@property (nonatomic, copy, nullable) NSString *characterBackground;
/// 下载量文案或数值(后端返回字符串)
@property (nonatomic, copy, nullable) NSString *download;
@@ -47,4 +47,3 @@ NS_ASSUME_NONNULL_BEGIN
@end
NS_ASSUME_NONNULL_END