Package com.bytedesk.voc.controller
Class VocController
java.lang.Object
com.bytedesk.voc.controller.VocController
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttributes
(org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.ui.Model model) assignedFeedbacks
(org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.ui.Model model, org.springframework.data.domain.Pageable pageable) index
(org.springframework.ui.Model model) pendingFeedbacks
(org.springframework.ui.Model model, org.springframework.data.domain.Pageable pageable) userFeedbacks
(org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.ui.Model model, String type, String status, org.springframework.data.domain.Pageable pageable) viewFeedback
(Long feedbackId, org.springframework.ui.Model model)
-
Field Details
-
showDemo
-
customEnabled
-
customName
-
customLogo
-
customDescription
@Value("${bytedesk.custom.description:\u91cd\u590d\u5de5\u4f5c\u81ea\u52a8\u5316}") private String customDescription -
feedbackService
-
-
Constructor Details
-
VocController
public VocController()
-
-
Method Details
-
addAttributes
@ModelAttribute public void addAttributes(@AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.ui.Model model) -
index
-
createFeedbackForm
-
viewFeedback
-
userFeedbacks
@GetMapping("/user/feedbacks") public String userFeedbacks(@AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.ui.Model model, @RequestParam(required=false) String type, @RequestParam(required=false) String status, @PageableDefault(size=10,sort="createdAt",direction=DESC) org.springframework.data.domain.Pageable pageable) -
pendingFeedbacks
@GetMapping("/admin/pending") public String pendingFeedbacks(org.springframework.ui.Model model, @PageableDefault(size=10,sort="createdAt",direction=DESC) org.springframework.data.domain.Pageable pageable) -
assignedFeedbacks
@GetMapping("/admin/assigned") public String assignedFeedbacks(@AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.ui.Model model, @PageableDefault(size=10,sort="createdAt",direction=DESC) org.springframework.data.domain.Pageable pageable)
-