Package com.bytedesk.voc.controller
Class VocApiController
java.lang.Object
com.bytedesk.voc.controller.VocApiController
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void>
assignFeedback
(Long feedbackId, Long assignedTo) org.springframework.http.ResponseEntity<FeedbackEntity>
createFeedback
(String content, String type, org.springframework.security.core.userdetails.UserDetails userDetails) org.springframework.http.ResponseEntity<ReplyEntity>
createReply
(Long feedbackId, String content, Long parentId, Boolean internal, org.springframework.security.core.userdetails.UserDetails userDetails) org.springframework.http.ResponseEntity<Void>
updateStatus
(Long feedbackId, String status)
-
Field Details
-
feedbackService
-
replyService
-
-
Constructor Details
-
VocApiController
public VocApiController()
-
-
Method Details
-
createFeedback
@PostMapping("/feedback") @PreAuthorize("isAuthenticated()") public org.springframework.http.ResponseEntity<FeedbackEntity> createFeedback(@RequestParam String content, @RequestParam String type, @AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails userDetails) -
createReply
@PostMapping("/feedback/{feedbackId}/reply") @PreAuthorize("isAuthenticated()") public org.springframework.http.ResponseEntity<ReplyEntity> createReply(@PathVariable Long feedbackId, @RequestParam String content, @RequestParam(required=false) Long parentId, @RequestParam(required=false) Boolean internal, @AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails userDetails) -
updateStatus
-
assignFeedback
-