43 lines
673 B
Objective-C
43 lines
673 B
Objective-C
//
|
|
// KBCommentModel.m
|
|
// keyBoard
|
|
//
|
|
// Created by Kiro on 2026/1/27.
|
|
//
|
|
|
|
#import "KBCommentModel.h"
|
|
#import <MJExtension/MJExtension.h>
|
|
|
|
@implementation KBCommentItem
|
|
|
|
+ (void)load {
|
|
// id 是 OC 关键字,需要映射
|
|
[self mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
|
|
return @{
|
|
@"commentId": @"id"
|
|
};
|
|
}];
|
|
}
|
|
|
|
+ (NSDictionary *)mj_objectClassInArray {
|
|
return @{
|
|
@"replies": [KBCommentItem class]
|
|
};
|
|
}
|
|
|
|
@end
|
|
|
|
@implementation KBCommentPageModel
|
|
|
|
+ (NSDictionary *)mj_objectClassInArray {
|
|
return @{
|
|
@"records": [KBCommentItem class]
|
|
};
|
|
}
|
|
|
|
@end
|
|
|
|
@implementation KBCommentLikeResponse
|
|
|
|
@end
|