|
@@ -12,7 +12,6 @@ import com.fjhx.mail.entity.message.dto.SendDto;
|
|
|
import com.fjhx.mail.entity.message.dto.SetSeenDto;
|
|
|
import com.fjhx.mail.service.message.InfoService;
|
|
|
import com.ruoyi.common.annotation.NonInterception;
|
|
|
-import com.ruoyi.common.core.domain.R;
|
|
|
import com.ruoyi.common.utils.SecurityUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -45,7 +44,7 @@ public class MailController {
|
|
|
public Object getMessagePage(@RequestBody JSONObject dtoJson) {
|
|
|
dtoJson.remove("id");//解决前端传的字符串id
|
|
|
GetMessagePageDto dto = BeanUtil.copyProperties(dtoJson, GetMessagePageDto.class);
|
|
|
- return R.ok(infoService.getMessagePage(dto));
|
|
|
+ return infoService.getMessagePage(dto);
|
|
|
|
|
|
// String post = HttpUtil.post(MailServiceConfig.urlPrefix + "getMessagePage", JSONObject.toJSONString(dto));
|
|
|
// return JSON.parseObject(post);
|
|
@@ -96,4 +95,13 @@ public class MailController {
|
|
|
return infoService.setSeen(dto);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 取消已读
|
|
|
+ */
|
|
|
+ @NonInterception
|
|
|
+ @PostMapping("/cancelSeen")
|
|
|
+ public JSONObject cancelSeen(@Validated @RequestBody SetSeenDto dto) {
|
|
|
+ return infoService.cancelSeen(dto);
|
|
|
+ }
|
|
|
+
|
|
|
}
|