提交 31c19350 authored 作者: 张国庆's avatar 张国庆

Update message_net.dart

上级 57cfac18
...@@ -85,34 +85,30 @@ mixin MessageNet { ...@@ -85,34 +85,30 @@ mixin MessageNet {
} }
// 标记全部已读 // 标记全部已读
Future<dynamic> confirmCleanMessage() async { Future<dynamic> confirmCleanMessage() {
var result = await api.requestSync( return api.requestSync(
method: Method.put, method: Method.put,
requestUrl: '/message-in-app/message/record/updateRecordAllForRead', requestUrl: '/message-in-app/message/record/updateRecordAllForRead',
queryParameters: {'accessKey': messageConfig.inAppAccessKey}); queryParameters: {'accessKey': messageConfig.inAppAccessKey});
return result;
} }
// 获取未读消息数量 // 获取未读消息数量
Future<dynamic> getUnReadMessageCount() async { Future<dynamic> getUnReadMessageCount() {
var result = await api.requestSync( return api.requestSync(
method: Method.get, method: Method.get,
requestUrl: '/message-in-app/message/record/listGroupCount', requestUrl: '/message-in-app/message/record/listGroupCount',
queryParameters: {'accessKey': messageConfig.inAppAccessKey}); queryParameters: {'accessKey': messageConfig.inAppAccessKey});
return result;
} }
// 按组获取未读消息列表 // 按组获取未读消息列表
Future<List<dynamic>> getUnReadMessageByGroup( Future<dynamic> getUnReadMessageByGroup(
Map<String, dynamic> params) async { Map<String, dynamic> params) {
var result = await api.requestSync( return api.requestSync(
method: Method.post, method: Method.post,
data: params, data: params,
requestUrl: '/message-in-app/message/record/pageMessageRecordOrderTime', requestUrl: '/message-in-app/message/record/pageMessageRecordOrderTime',
); );
return result['records'] ?? [];
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论