feat: 消息添加未阅读数量

This commit is contained in:
orz12
2024-01-24 14:45:15 +08:00
parent 772a6a9843
commit 65e4d6f61e
5 changed files with 272 additions and 181 deletions

View File

@@ -328,6 +328,8 @@ class Api {
// 获取指定分组下的up
static const String followUpGroup = '/x/relation/tag';
static const String msgFeedUnread = '/x/msgfeed/unread';
/// 私聊
/// 'https://api.vc.bilibili.com/session_svr/v1/session_svr/get_sessions?
/// session_type=1&

View File

@@ -5,6 +5,22 @@ import 'api.dart';
import 'init.dart';
class MsgHttp {
static Future msgFeedUnread() async {
var res = await Request().get(Api.msgFeedUnread);
if (res.data['code'] == 0) {
return {
'status': true,
'data': res.data['data'],
};
} else {
return {
'status': false,
'date': [],
'msg': res.data['message'],
};
}
}
// 会话列表
static Future sessionList({int? endTs}) async {
Map<String, dynamic> params = {