|
|
@ -17,6 +17,8 @@ |
|
|
|
|
|
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.dto.form.ReplyListFormDTO; |
|
|
@ -51,7 +53,8 @@ public class ResiEventReplyController { |
|
|
|
* @date 2021/8/3 11:11 上午 |
|
|
|
*/ |
|
|
|
@PostMapping("list") |
|
|
|
public Result<List<ReplyListResultDTO>> replyList(@RequestBody ReplyListFormDTO formDTO){ |
|
|
|
public Result<List<ReplyListResultDTO>> replyList(@LoginUser TokenDto tokenDto, @RequestBody ReplyListFormDTO formDTO){ |
|
|
|
formDTO.setCurrentUserId(tokenDto.getUserId()); |
|
|
|
ValidatorUtils.validateEntity(formDTO, ReplyListFormDTO.ReplyListForm.class); |
|
|
|
return new Result<List<ReplyListResultDTO>>().ok(resiEventReplyService.replyList(formDTO)); |
|
|
|
} |
|
|
|