123456789101112131415161718192021222324252627282930 |
- package com.hssx.ysofficial.controller;
- import com.hssx.ysofficial.service.CommentService;
- 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.RestController;
- /**
- * <p>
- * the comments left by customers 前端控制器
- * </p>
- *
- * @author Reiskuchen
- * @since 2019-10-22
- */
- @RestController
- @RequestMapping("/comment")
- public class CommentController {
- @Autowired
- private CommentService commentService;
- @RequestMapping("/getComments")
- public HttpRespMsg getComments(){
- return commentService.getComments();
- }
- }
|