处理了评论新增评论,在聊天里的评论数也一同改变

This commit is contained in:
2026-02-04 19:31:30 +08:00
parent bacaf537f3
commit dd59094a16
4 changed files with 32 additions and 1 deletions

View File

@@ -10,9 +10,19 @@
NS_ASSUME_NONNULL_BEGIN
@class KBAICommentView;
@protocol KBAICommentViewDelegate <NSObject>
@optional
/// 评论总数变化回调(例如发送评论/回复成功后)
- (void)commentView:(KBAICommentView *)view didUpdateTotalCommentCount:(NSInteger)totalCommentCount;
@end
/// 抖音风格评论视图
@interface KBAICommentView : UIView
@property(nonatomic, weak, nullable) id<KBAICommentViewDelegate> delegate;
/// AI 陪聊角色 ID
@property(nonatomic, assign) NSInteger companionId;