luohairen
2024-11-12 b661bcf7e065092c876e052bad0bfaecb9dc0c17
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);
    }
}