| 
					
				 | 
			
			
				@@ -0,0 +1,51 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+package com.hssx.ysofficial.controller; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.hssx.ysofficial.entity.Feedback; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.hssx.ysofficial.service.FeedbackService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.hssx.ysofficial.utility.HttpRespMsg; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.web.bind.annotation.RequestMapping; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.web.bind.annotation.RequestParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.web.bind.annotation.RestController; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * <p> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * 装饰在首页的客户反馈 前端控制器 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * </p> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * @author Reiskuchen 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * @since 2020-02-06 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+@RestController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+@RequestMapping("/feedback") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+public class FeedbackController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private FeedbackService feedbackService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @RequestMapping("/getFeedbackTitle") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public HttpRespMsg getFeedbackTitle() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return feedbackService.getFeedbackTitle(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @RequestMapping("/updateFeedbackTitle") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public HttpRespMsg updateFeedbackTitle(@RequestParam String content) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return feedbackService.updateFeedbackTitle(content); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @RequestMapping("/listFeedback") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public HttpRespMsg listFeedback() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return feedbackService.listFeedback(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @RequestMapping("/insertOrUpdateFeedback") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public HttpRespMsg insertOrUpdateFeedback(Feedback feedback) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return feedbackService.insertOrUpdateFeedback(feedback); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @RequestMapping("/deleteFeedback") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public HttpRespMsg deleteFeedback(@RequestParam Integer id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return feedbackService.deleteFeedback(id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 |