| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.CrossOrigin; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | * @author ZERO 2021-03-03 09:06 |
| | | */ |
| | | @RestController |
| | | @CrossOrigin |
| | | @RequestMapping("/homepage") |
| | | @Api(tags = "首页相关接口") |
| | | public class HomepageController { |
| | |
| | | return new Result(true, "tab",homepageService.getTabs()); |
| | | } |
| | | |
| | | // @GetMapping |
| | | // @ApiOperation("获取列表") |
| | | // public Result getIndexDetail() { |
| | | //// System.err.println("=====>获取列表"); |
| | | // return new Result(true,"", homepageService.getIndexDetail()); |
| | | // } |
| | | @GetMapping(value = "/home") |
| | | @ApiOperation("获取列表") |
| | | public Result getIndexDetail() { |
| | | // System.err.println("=====>获取列表"); |
| | | return new Result(true,"", homepageService.getIndexDetail()); |
| | | } |
| | | |
| | | @GetMapping(value = "/getExcellentTeaching") |
| | | @ApiOperation("获取精品教学") |
| | | public Result getExcellentTeaching() { |
| | | // System.err.println("=====>获取列表"); |
| | | return new Result(true,"", homepageService.getExcellentTeaching()); |
| | | } |
| | | |
| | | @GetMapping("/article") |
| | | @ApiOperation("获取文章列表") |