Merge remote-tracking branch 'origin/master'

This commit is contained in:
LiuY 2022-05-11 09:40:29 +08:00
commit a483c68188

View File

@ -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<String, Object> params = requestParams();
Integer unreadCounts = mailService.getAppUserUnreadMail(token, params);
return unreadCounts;
params.clear();
params.put("unreadCounts", unreadCounts);
return new SuccessResultData<>(params);
}
@ApiOperation(value = "批量发送内部邮件接口", notes = "批量发送内部邮件接口")