Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
a483c68188
@ -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 = "批量发送内部邮件接口")
|
||||||
|
Loading…
Reference in New Issue
Block a user