feat: live feedback (#2456)

This commit is contained in:
My-Responsitories
2026-07-21 08:49:37 +00:00
committed by GitHub
parent 2d389424af
commit 3a5636ecee
8 changed files with 251 additions and 77 deletions

View File

@@ -765,4 +765,41 @@ abstract final class LiveHttp {
return Error(res.data['message']);
}
}
static Future<LoadingState<void>> liveFeedback(
Object roomId,
Object id,
String type, {
int page = 1,
}) async {
final params = {
'access_key': ?recommend.accessKey,
'actionKey': 'appkey',
'build': 8430300,
'channel': 'master',
'c_locale': 'zh_CN',
'device': 'android',
'disable_rcmd': 0,
'mobi_app': 'android',
'platform': 'android',
's_locale': 'zh_CN',
'statistics': Constants.statisticsApp,
'version': '8.43.0',
'id': id,
'id_type': type,
'room_id': roomId,
'type': 'dislike',
'page': page,
};
AppSign.appSign(params);
final res = await Request().get(
Api.liveFeedback,
queryParameters: params,
);
if (res.data['code'] == 0) {
return const Success(null);
} else {
return Error(res.data['message']);
}
}
}