46 lines
1003 B
Objective-C
46 lines
1003 B
Objective-C
//
|
|
// KBChatHistoryPageModel.h
|
|
// keyBoard
|
|
//
|
|
// Created by Kiro on 2026/1/26.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "KBChatHistoryModel.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/// 排序规则
|
|
@interface KBChatOrderRule : NSObject
|
|
@property (nonatomic, copy) NSString *column; // 排序字段
|
|
@property (nonatomic, assign) BOOL asc; // 是否升序
|
|
@end
|
|
|
|
/// 聊天记录分页数据模型
|
|
@interface KBChatHistoryPageModel : NSObject
|
|
|
|
/// 聊天记录列表
|
|
@property (nonatomic, strong) NSArray<KBChatHistoryModel *> *records;
|
|
|
|
/// 总记录数
|
|
@property (nonatomic, assign) NSInteger total;
|
|
|
|
/// 每页大小
|
|
@property (nonatomic, assign) NSInteger size;
|
|
|
|
/// 当前页码
|
|
@property (nonatomic, assign) NSInteger current;
|
|
|
|
/// 排序规则
|
|
@property (nonatomic, strong, nullable) NSArray<KBChatOrderRule *> *orders;
|
|
|
|
/// 总页数
|
|
@property (nonatomic, assign) NSInteger pages;
|
|
|
|
/// 是否还有更多数据
|
|
@property (nonatomic, assign, readonly) BOOL hasMore;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|