|
|
@@ -72,17 +72,13 @@ public class UserFeedbackController {
|
|
|
}
|
|
|
|
|
|
@Operation(summary = "用户反馈回复")
|
|
|
- @PutMapping(value = "/{id}/{reply}")
|
|
|
+ @PutMapping(value = "/reply")
|
|
|
@PreAuthorize("@ss.hasPerm('business:userFeedback:reply')")
|
|
|
- public Result<Void> reply(
|
|
|
- @Parameter(description = "用户反馈ID") @PathVariable Long id,
|
|
|
- @Parameter(description = "回复") @PathVariable String reply
|
|
|
- ) {
|
|
|
- UserFeedbackForm formData = new UserFeedbackForm();
|
|
|
- formData.setId(id);
|
|
|
- formData.setReply(reply);
|
|
|
+ public Result<Boolean> reply(@RequestBody UserFeedbackForm formData) {
|
|
|
+ formData.setId(formData.getId());
|
|
|
+ formData.setReply(formData.getReply());
|
|
|
formData.setReplyStatus(1);
|
|
|
- boolean result = userFeedbackService.updateUserFeedback(id, formData);
|
|
|
+ boolean result = userFeedbackService.updateUserFeedback(formData.getId(), formData);
|
|
|
return Result.judge(result);
|
|
|
}
|
|
|
}
|