1
This commit is contained in:
parent
948943e7a5
commit
761100fb6d
@ -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 = "批量发送内部邮件接口")
|
||||
|
Loading…
Reference in New Issue
Block a user