package com.kym.miniapp.controller;

import com.kym.common.R;
import com.kym.entity.admin.queryParams.BannerQueryParam;
import com.kym.service.admin.BannerService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * banner配置表 前端控制器
 * </p>
 *
 * @author skyline
 * @since 2023-10-18
 */
@RestController
@RequestMapping("/banner")
public class BannerController {

    private final BannerService bannerService;

    public BannerController(BannerService bannerService) {
        this.bannerService = bannerService;
    }

    /**
     * Banner列表
     *
     * @return
     */
    @GetMapping
    R<?> listBanner() {
        return R.success(bannerService.listBannerForApp());
    }

}
