“mitao”
2026-02-13 bfb020da5cf8aa89c5eaae9e59e9ea8e04a49448
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 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());
    }
 
 
 
 
 
}