| | |
| | | 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.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | |
| | | */ |
| | | @Api(tags = "标签信息表业务") |
| | | @Trace(exclude = true) |
| | | //@RestController |
| | | @RestController |
| | | @RequestMapping("/web/labels") |
| | | @Slf4j |
| | | public class LabelsApi extends ApiController{ |
| | |
| | | @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), |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "parentId", value = "父级主键", required = false), |
| | | }) |
| | | public ApiResponse<List<LabelsResponse>> getGoodsLabelsByType(Integer type){ |
| | | return ApiResponse.success(labelsService.getGoodsLabelsByType(type)); |
| | | public ApiResponse<List<LabelsResponse>> getGoodsLabelsByType(@RequestParam Integer type,Integer parentId){ |
| | | return ApiResponse.success(labelsService.getGoodsLabelsByType(type,parentId)); |
| | | } |
| | | |
| | | |