1
This commit is contained in:
42
keyBoard/Class/AiTalk/M/KBCommentModel.m
Normal file
42
keyBoard/Class/AiTalk/M/KBCommentModel.m
Normal file
@@ -0,0 +1,42 @@
|
||||
//
|
||||
// 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
|
||||
Reference in New Issue
Block a user