|
@ -7,8 +7,12 @@ import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
import com.epmet.dto.UserMessageDTO; |
|
|
import com.epmet.dto.UserMessageDTO; |
|
|
import com.epmet.dto.form.MymessageFormDTO; |
|
|
import com.epmet.dto.form.MymessageFormDTO; |
|
|
import com.epmet.modules.message.service.UserMessageService; |
|
|
import com.epmet.modules.message.service.UserMessageService; |
|
|
|
|
|
import com.epmet.resi.mine.dto.from.ReadMessageFromDTO; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
|
|
@ -40,18 +44,16 @@ public class UserMessageController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @param tokenDto |
|
|
* @param fromDTO |
|
|
* @param messageId |
|
|
|
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
* @Author yinzuomei |
|
|
* @Author yinzuomei |
|
|
* @Description 单条消息标记为已读 |
|
|
* @Description 单条消息标记为已读 |
|
|
* @Date 2020/3/29 21:05 |
|
|
* @Date 2020/3/29 21:05 |
|
|
**/ |
|
|
**/ |
|
|
@PostMapping("readmsg") |
|
|
@PostMapping("readmsg") |
|
|
public Result readMessage(@LoginUser TokenDto tokenDto, |
|
|
public Result readMessage(@RequestBody ReadMessageFromDTO fromDTO) { |
|
|
@RequestParam("messageId") String messageId) { |
|
|
|
|
|
//逻辑待实现
|
|
|
//逻辑待实现
|
|
|
return userMessageService.readMessage(messageId); |
|
|
return userMessageService.readMessage(fromDTO.getMessageId()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|