opt: reply del

This commit is contained in:
guozhigq
2024-11-14 00:19:05 +08:00
parent 0009630639
commit b93a3d08cc
5 changed files with 29 additions and 6 deletions

View File

@ -123,4 +123,15 @@ class DynamicDetailController extends GetxController {
Future onLoad() async {
queryReplyList(reqType: 'onLoad');
}
Future removeReply(int? rpid, int? frpid) async {
// 移除一楼评论
if (rpid != null) {
replyList.removeWhere((item) {
return item.rpid == rpid;
});
}
/// TODO 移除二楼评论
}
}