package com.kxs.system.biz.controller.kxsapp;

import com.kxs.common.core.util.R;
import com.kxs.system.api.vo.kxsapp.banner.BannerListVO;
import com.kxs.system.biz.service.KxsBannerService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 首页(Banner)控制层
 *
 * @author 系统
 * @since 2023-12-15 12:16:33
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("banner")
public class BannerController {

    /**
     * 服务对象
     */
    private final KxsBannerService kxsBannerService;

    /**
     * 广告-广告管理
     *
     * @return 广告-广告管理
     */
    @GetMapping("/list")
    public R<List<BannerListVO>> list() {

        return R.ok(kxsBannerService.getBylist());
    }

}

