package com.ycl.jxkg.controller.student; import com.ycl.jxkg.base.Result; import com.ycl.jxkg.service.HomeService; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RequiredArgsConstructor @RestController("HomeController") @RequestMapping(value = "/api/student/home") public class HomeController { @Autowired private HomeService homeService; @GetMapping() @ApiOperation(value = "首页", notes = "首页") public Result home() { Result home = homeService.home(); return Result.ok(home); } }