分类移动文件
This commit is contained in:
36
keyBoard/Class/AiTalk/V/Chat/KBPersonaChatCell.h
Normal file
36
keyBoard/Class/AiTalk/V/Chat/KBPersonaChatCell.h
Normal file
@@ -0,0 +1,36 @@
|
||||
//
|
||||
// KBPersonaChatCell.h
|
||||
// keyBoard
|
||||
//
|
||||
// Created by Kiro on 2026/1/26.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "KBPersonaModel.h"
|
||||
#import "KBChatTableView.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/// 人设聊天 Cell
|
||||
@interface KBPersonaChatCell : UICollectionViewCell
|
||||
/// 聊天列表
|
||||
@property (nonatomic, strong) KBChatTableView *chatView;
|
||||
/// 人设数据
|
||||
@property (nonatomic, strong) KBPersonaModel *persona;
|
||||
|
||||
/// 预加载数据
|
||||
- (void)preloadDataIfNeeded;
|
||||
|
||||
/// 添加用户消息
|
||||
- (void)appendUserMessage:(NSString *)text;
|
||||
|
||||
/// 添加 AI 消息(支持打字机效果)
|
||||
- (void)appendAssistantMessage:(NSString *)text
|
||||
audioId:(nullable NSString *)audioId;
|
||||
|
||||
/// 更新聊天列表底部 inset
|
||||
- (void)updateChatViewBottomInset:(CGFloat)bottomInset;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user