import 'package:dio/dio.dart'; import 'package:qhd_prevention/http/ApiService.dart'; import 'package:qhd_prevention/http/HttpManager.dart'; class NotifApi { /// 通知列表 static Future> getNoticeList(Map data) { return HttpManager().request( '${ApiService.basePath}/appmenu', '/noticeReadRecord/list', method: Method.post, data: { ...data , }, ); } /// 通知详情 static Future> getNoticeDetail(String noticeId) { return HttpManager().request( '${ApiService.basePath}/appmenu', '/notice/noticeContentInfo/$noticeId', method: Method.get, data: { // ...data , }, ); } /// 已阅 static Future> saveReadNoticeDetail(String noticeId) { return HttpManager().request( '${ApiService.basePath}/appmenu', '/noticeReadRecord/save', method: Method.post, data: { "noticeId": noticeId, }, ); } /// 回复 static Future> replyContent(String noticeReadId,String replyContent) { return HttpManager().request( '${ApiService.basePath}/appmenu', '/noticeReadRecord/reply', method: Method.put, data: { "noticeReadId": noticeReadId, "replyContent": replyContent, }, ); } /// 通知数量 static Future> getNotifRedPoint() { return HttpManager().request( '${ApiService.basePath}/appmenu', '/notice/unreadCount', method: Method.get, data: { // ...data , }, ); } }