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