CommentController.java 715 B

123456789101112131415161718192021222324252627282930
  1. package com.hssx.ysofficial.controller;
  2. import com.hssx.ysofficial.service.CommentService;
  3. import com.hssx.ysofficial.utility.HttpRespMsg;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.web.bind.annotation.RequestMapping;
  6. import org.springframework.web.bind.annotation.RestController;
  7. /**
  8. * <p>
  9. * the comments left by customers 前端控制器
  10. * </p>
  11. *
  12. * @author Reiskuchen
  13. * @since 2019-10-22
  14. */
  15. @RestController
  16. @RequestMapping("/comment")
  17. public class CommentController {
  18. @Autowired
  19. private CommentService commentService;
  20. @RequestMapping("/getComments")
  21. public HttpRespMsg getComments(){
  22. return commentService.getComments();
  23. }
  24. }