package cn.iocoder.yudao.module.base.controller.app;


import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
import cn.iocoder.yudao.module.jx.domain.DriveSchoolSwiper;
import cn.iocoder.yudao.module.jx.service.IDriveSchoolSwiperService;
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;

import javax.annotation.security.PermitAll;
import java.util.List;

/**
 * 驾校-轮播图Controller
 *
 * @author ruoyi
 * @date 2024-03-19
 */
@RestController
@RequestMapping("/drivingSchool/small/swiper")
public class DriveSchoolSwiperSmallProgramController {

    @Autowired
    private IDriveSchoolSwiperService driveSchoolSwiperService;

    /**
     * 查询驾校-轮播图列表
     */
    @TenantIgnore
    @PermitAll
    @GetMapping("/list")
    public CommonResult list(DriveSchoolSwiper driveSchoolSwiper)
    {
        List<DriveSchoolSwiper> list = driveSchoolSwiperService.selectDriveSchoolSwiperList(driveSchoolSwiper);
        return CommonResult.success(list);
    }
}
