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

Update message_net.dart

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