From 761100fb6db0eec224a245683d148c3e8057146d Mon Sep 17 00:00:00 2001 From: wans <747101512@qq.com> Date: Fri, 29 Apr 2022 15:29:21 +0800 Subject: [PATCH] 1 --- .../controller/app/api/mail/MailAppController.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/cn/com/tenlion/systemoa/controller/app/api/mail/MailAppController.java b/src/main/java/cn/com/tenlion/systemoa/controller/app/api/mail/MailAppController.java index 2b9022b..b8c223d 100644 --- a/src/main/java/cn/com/tenlion/systemoa/controller/app/api/mail/MailAppController.java +++ b/src/main/java/cn/com/tenlion/systemoa/controller/app/api/mail/MailAppController.java @@ -10,6 +10,7 @@ import ink.wgink.interfaces.consts.ISystemConstant; import ink.wgink.pojo.ListPage; import ink.wgink.pojo.result.ErrorResult; import ink.wgink.pojo.result.SuccessResult; +import ink.wgink.pojo.result.SuccessResultData; import ink.wgink.pojo.result.SuccessResultList; import io.swagger.annotations.*; import org.springframework.beans.factory.annotation.Autowired; @@ -52,10 +53,12 @@ public class MailAppController extends DefaultBaseController { }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("get-app-user-unread-mail") - public Integer getAppUserUnreadMail(@RequestHeader("token") String token){ + public SuccessResult getAppUserUnreadMail(@RequestHeader("token") String token){ Map params = requestParams(); Integer unreadCounts = mailService.getAppUserUnreadMail(token, params); - return unreadCounts; + params.clear(); + params.put("unreadCounts", unreadCounts); + return new SuccessResultData<>(params); } @ApiOperation(value = "批量发送内部邮件接口", notes = "批量发送内部邮件接口")