40 lines
686 B
Mathematica
40 lines
686 B
Mathematica
|
|
//
|
||
|
|
// KBChatHistoryPageModel.m
|
||
|
|
// keyBoard
|
||
|
|
//
|
||
|
|
// Created by Kiro on 2026/1/26.
|
||
|
|
//
|
||
|
|
|
||
|
|
#import "KBChatHistoryPageModel.h"
|
||
|
|
#import <MJExtension/MJExtension.h>
|
||
|
|
|
||
|
|
@implementation KBChatOrderRule
|
||
|
|
@end
|
||
|
|
|
||
|
|
@implementation KBChatHistoryPageModel
|
||
|
|
|
||
|
|
#pragma mark - MJExtension 配置
|
||
|
|
|
||
|
|
// 数组内元素类型
|
||
|
|
+ (NSDictionary *)mj_objectClassInArray {
|
||
|
|
return @{
|
||
|
|
@"records": [KBChatHistoryModel class],
|
||
|
|
@"orders": [KBChatOrderRule class]
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
// 转换完成后的处理
|
||
|
|
- (void)mj_keyValuesDidFinishConvertingToObject {
|
||
|
|
if (!self.records) {
|
||
|
|
self.records = @[];
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
#pragma mark - 扩展属性
|
||
|
|
|
||
|
|
- (BOOL)hasMore {
|
||
|
|
return self.current < self.pages;
|
||
|
|
}
|
||
|
|
|
||
|
|
@end
|