package com.ruoyi.web.modules.content.controller;

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 com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.modules.content.service.IBannerService;

/**
 * C 端首页 Banner
 */
@RestController
@RequestMapping("/api/home")
public class HomeBannerAppController extends BaseController
{
    @Autowired
    private IBannerService bannerService;

    @Anonymous
    @GetMapping("/banners")
    public AjaxResult banners()
    {
        return success(bannerService.listBannersForApp());
    }
}
