kongzy
2024-07-05 14821e28286d773ad5ff2c13510e39c5eb117daf
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.gkhy.exam.admin.app;
 
 
import com.gkhy.exam.common.api.CommonResult;
import com.gkhy.exam.system.domain.SysCarousel;
import com.gkhy.exam.system.service.SysCarouselService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
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;
 
/**
 * <p>
 * 轮播图表 前端控制器
 * </p>
 *
 * @author kzy
 * @since 2024-06-05 11:15:14
 */
@Api(tags = "APP轮播图前端控制器")
@RestController
@RequestMapping("/app/carousel")
public class AppCarouselController {
    @Autowired
    private SysCarouselService carouselService;
 
    @ApiOperation(value = "轮播列表(分页)")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
            @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10")
    })
    @GetMapping("/list")
    public CommonResult list(SysCarousel  carousel){
        return CommonResult.success(carouselService.selectCarouselList(carousel));
    }
}