package com.ruoyi.promotion.controller.forepart;
|
|
|
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.promotion.domain.PromotionBanner;
|
import com.ruoyi.promotion.service.IPromotionBannerService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import java.util.List;
|
import javax.annotation.Resource;
|
|
import org.springframework.web.bind.annotation.*;
|
|
/**
|
* <p>
|
* 轮播图表 前端控制器
|
* </p>
|
*
|
* @author mitao
|
* @since 2024-05-16
|
*/
|
@RestController
|
@RequestMapping("/forepart/promotion-banner")
|
@Api(value = "用户端-商场或者资讯的轮播图", tags = "用户端-商场或者资讯的轮播图", description = "用户端-商场或者资讯的轮播图")
|
public class ForepartPromotionBannerController {
|
@Resource
|
private IPromotionBannerService iPromotionBannerService;
|
@PostMapping("/getBaanerList")
|
@ResponseBody
|
@ApiOperation(value = "用户端-商场或者资讯的轮播图")
|
public R<List<PromotionBanner>> getBaanerList(@PathVariable("bannerType") Integer bannerType) {
|
return R.ok(iPromotionBannerService.getBaanerList(bannerType));
|
}
|
|
}
|