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