rk
2025-12-15 a1a6e227628810259fcba0fff146792e97a80b8a
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package com.doumee.api.web;
 
import com.doumee.core.annotation.trace.Trace;
import com.doumee.core.model.ApiResponse;
import com.doumee.core.utils.Constants;
import com.doumee.dao.business.model.Labels;
import com.doumee.dao.web.response.LabelsResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
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;
 
/**
 * @author T14
 */
@Api(tags = "标签信息表业务")
@Trace(exclude = true)
@RestController
@RequestMapping("/web/labels")
@Slf4j
public class LabelsApi  extends ApiController{
 
 
    /**
     * 查询咖啡百科
     *
     * @return List<Labels>
     */
    @ApiOperation(value = "查询咖啡百科", notes = "小程序端")
    @GetMapping("/findListByType")
    public ApiResponse<List<Labels>> findListByType(){
        return ApiResponse.success(labelsService.findCoffeeArticleListByType());
    }
 
    @ApiOperation(value = "获取商品分类 父级不用传递参数 子级传递父级ID", notes = "小程序端")
    @GetMapping("/getGoodsLabels")
    public ApiResponse<List<LabelsResponse>> getGoodsLabels(Integer parentId){
        return ApiResponse.success(labelsService.getGoodsLabels(parentId));
    }
 
 
    @ApiOperation(value = "获取分类信息", notes = "小程序端")
    @GetMapping("/getGoodsLabelsByType")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true),
            @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "type", value = "类型0商品分类 1商品品牌 2商家标签 3快递 4退货选项 5换货选项 6退款选项 7取消订单选项 8咖啡百科分类 9咨 询分类 10活动赛事分类 11达人探店分类", required = true),
    })
    public ApiResponse<List<LabelsResponse>> getGoodsLabelsByType(Integer type){
        return ApiResponse.success(labelsService.getGoodsLabelsByType(type));
    }
 
 
}