package com.xiaopeng.operation.controller;
|
|
import com.xiaopeng.common.core.domain.R;
|
import com.xiaopeng.common.core.web.controller.BaseController;
|
import com.xiaopeng.common.core.web.domain.AjaxResult;
|
import com.xiaopeng.operation.service.XpBannerService;
|
import com.xiaopeng.operation.vo.XpBannerListVo;
|
import com.xiaopeng.unifiedverification.interceptor.XpClientCheck;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import lombok.extern.slf4j.Slf4j;
|
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;
|
|
@Slf4j
|
@RestController
|
@RequestMapping("/base/v1/mini-program")
|
@Api(tags = "banner模块")
|
public class XpBannerController extends BaseController {
|
|
// banner实现类
|
private final XpBannerService xpBannerService;
|
|
public XpBannerController(XpBannerService xpBannerService) {
|
this.xpBannerService = xpBannerService;
|
}
|
|
|
/**
|
* 获取banner
|
* @return
|
*/
|
@ApiOperation(value = "获取banner",tags = {"小程序-获取banner"},response = XpBannerListVo.class)
|
@GetMapping("/getBannerList")
|
public R<List<XpBannerListVo>> getBannerList() {
|
return R.ok(xpBannerService.getXpBannerList());
|
}
|
|
|
|
|
|
}
|