rentaiming
2024-06-03 e895d0b3f09cd855cfcd733643965822bfbd49df
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
package com.ruoyi.goods.controller.forepart;
 
 
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.goods.service.IGoodsBrandService;
import com.ruoyi.system.api.domain.GoodsBrand;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
 
import javax.annotation.Resource;
import java.util.List;
 
/**
 * <p>
 * 品牌表 前端控制器
 * </p>
 *
 * @author mitao
 * @since 2024-05-16
 */
@RestController
@RequestMapping("/forepart/goods-brand")
@RequiredArgsConstructor
@Api(value = "用戶端-商品品牌接口", tags = "用戶端-商品品牌接口", description = "用戶端-商品品牌接口")
public class ForepartGoodsBrandController {
 
    @Resource
    private IGoodsBrandService iGoodsBrandService;
    @PostMapping("/getGoodsSeriesList")
    @ApiOperation(value = "用户端-商品筛选获取品牌")
    public R<List<GoodsBrand>> getGoodsSeriesList() {
        LambdaQueryWrapper<GoodsBrand> wrapper= Wrappers.lambdaQuery();
        wrapper.eq(GoodsBrand::getDelFlag,0);
        List<GoodsBrand> list = iGoodsBrandService.list(wrapper);
        return R.ok(list);
 
    }
 
}