|
@ -18,6 +18,7 @@ |
|
|
package com.epmet.controller; |
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
|
|
|
import com.epmet.commons.tools.aop.NoRepeatSubmit; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
@ -43,7 +44,7 @@ import java.util.List; |
|
|
@RestController |
|
|
@RestController |
|
|
@RequestMapping("resieventreply") |
|
|
@RequestMapping("resieventreply") |
|
|
public class ResiEventReplyController { |
|
|
public class ResiEventReplyController { |
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private ResiEventReplyService resiEventReplyService; |
|
|
private ResiEventReplyService resiEventReplyService; |
|
|
|
|
|
|
|
@ -62,13 +63,14 @@ public class ResiEventReplyController { |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 报事-工作人员回复 |
|
|
* 报事-工作人员回复 |
|
|
* |
|
|
* |
|
|
* @param tokenDto |
|
|
* @param tokenDto |
|
|
* @param replyFormDTO |
|
|
* @param replyFormDTO |
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
* @author yinzuomei |
|
|
* @author yinzuomei |
|
|
* @date 2021/8/4 14:19 |
|
|
* @date 2021/8/4 14:19 |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@NoRepeatSubmit |
|
|
@PostMapping("govReply") |
|
|
@PostMapping("govReply") |
|
|
public Result govReply(@LoginUser TokenDto tokenDto,@RequestBody ReplyFormDTO replyFormDTO){ |
|
|
public Result govReply(@LoginUser TokenDto tokenDto,@RequestBody ReplyFormDTO replyFormDTO){ |
|
|
replyFormDTO.setUserId(tokenDto.getUserId()); |
|
|
replyFormDTO.setUserId(tokenDto.getUserId()); |
|
@ -79,13 +81,14 @@ public class ResiEventReplyController { |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 报事当事人回复 |
|
|
* 报事当事人回复 |
|
|
* |
|
|
* |
|
|
* @param tokenDto |
|
|
* @param tokenDto |
|
|
* @param formDTO |
|
|
* @param formDTO |
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
* @author yinzuomei |
|
|
* @author yinzuomei |
|
|
* @date 2021/8/4 14:37 |
|
|
* @date 2021/8/4 14:37 |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@NoRepeatSubmit |
|
|
@PostMapping("selfReply") |
|
|
@PostMapping("selfReply") |
|
|
public Result selfReply(@LoginUser TokenDto tokenDto,@RequestBody ReplyFormDTO formDTO){ |
|
|
public Result selfReply(@LoginUser TokenDto tokenDto,@RequestBody ReplyFormDTO formDTO){ |
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
@ -103,6 +106,7 @@ public class ResiEventReplyController { |
|
|
* @author yinzuomei |
|
|
* @author yinzuomei |
|
|
* @date 2021/8/4 15:06 |
|
|
* @date 2021/8/4 15:06 |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@NoRepeatSubmit |
|
|
@PostMapping("atReply") |
|
|
@PostMapping("atReply") |
|
|
public Result atReply(@LoginUser TokenDto tokenDto,@RequestBody ReplyFormDTO formDTO){ |
|
|
public Result atReply(@LoginUser TokenDto tokenDto,@RequestBody ReplyFormDTO formDTO){ |
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
@ -110,4 +114,4 @@ public class ResiEventReplyController { |
|
|
resiEventReplyService.atReply(formDTO); |
|
|
resiEventReplyService.atReply(formDTO); |
|
|
return new Result(); |
|
|
return new Result(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|