This commit is contained in:
wans 2022-04-29 15:29:21 +08:00
parent 948943e7a5
commit 761100fb6d

View File

@ -10,6 +10,7 @@ import ink.wgink.interfaces.consts.ISystemConstant;
import ink.wgink.pojo.ListPage; import ink.wgink.pojo.ListPage;
import ink.wgink.pojo.result.ErrorResult; import ink.wgink.pojo.result.ErrorResult;
import ink.wgink.pojo.result.SuccessResult; import ink.wgink.pojo.result.SuccessResult;
import ink.wgink.pojo.result.SuccessResultData;
import ink.wgink.pojo.result.SuccessResultList; import ink.wgink.pojo.result.SuccessResultList;
import io.swagger.annotations.*; import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -52,10 +53,12 @@ public class MailAppController extends DefaultBaseController {
}) })
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("get-app-user-unread-mail") @GetMapping("get-app-user-unread-mail")
public Integer getAppUserUnreadMail(@RequestHeader("token") String token){ public SuccessResult getAppUserUnreadMail(@RequestHeader("token") String token){
Map<String, Object> params = requestParams(); Map<String, Object> params = requestParams();
Integer unreadCounts = mailService.getAppUserUnreadMail(token, params); Integer unreadCounts = mailService.getAppUserUnreadMail(token, params);
return unreadCounts; params.clear();
params.put("unreadCounts", unreadCounts);
return new SuccessResultData<>(params);
} }
@ApiOperation(value = "批量发送内部邮件接口", notes = "批量发送内部邮件接口") @ApiOperation(value = "批量发送内部邮件接口", notes = "批量发送内部邮件接口")