
package com.yami.shop.platform.controller;

import com.yami.shop.bean.model.CategoryProdHb;
import com.yami.shop.common.util.R;
import com.yami.shop.service.CategoryProdHbService;
import org.springframework.beans.factory.annotation.Autowired;
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 fbj
 * @version 1.0.0
 * @since 2025-9-26
 */
@RestController
@RequestMapping("/platform/categoryProdHb")
public class CategoryPropHbController {

    @Autowired
    private CategoryProdHbService categoryProdHbService;


    /**
     * 分页通过code查询分类绑定商品
     */
    @GetMapping("/pageByCode")
    public R<List<CategoryProdHb>> pageByCode(CategoryProdHb categoryProd) {
        List<CategoryProdHb> list = categoryProdHbService.pageByCode(categoryProd);
        return R.SUCCESS(list);
    }

}
