feat: 视频评论删除

This commit is contained in:
guozhigq
2024-09-15 02:30:35 +08:00
parent fb010d6d4f
commit d2640f230c
3 changed files with 79 additions and 9 deletions

View File

@ -565,4 +565,7 @@ class Api {
/// 直播间发送弹幕
static const String sendLiveMsg = '${HttpString.liveBaseUrl}/msg/send';
/// 删除评论
static const String replyDel = '/x/v2/reply/del';
}

View File

@ -115,4 +115,25 @@ class ReplyHttp {
};
}
}
static Future replyDel({
required int type, //replyType
required int oid,
required int rpid,
}) async {
var res = await Request().post(
Api.replyDel,
queryParameters: {
'type': type, //type.index
'oid': oid,
'rpid': rpid,
'csrf': await Request.getCsrf(),
},
);
if (res.data['code'] == 0) {
return {'status': true, 'msg': '删除成功'};
} else {
return {'status': false, 'msg': res.data['message']};
}
}
}