package com.xingxi.web.controller.master.product.controller;

import com.xingxi.common.core.controller.BaseController;
import com.xingxi.common.core.page.TableDataInfo;
import com.xingxi.web.controller.master.product.domain.ProdAttrJointVo;
import com.xingxi.web.controller.master.product.service.IProdAttrJointVoService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * 商品属性组合Controller
 *
 * @author ruoyi
 * @date 2025-03-09
 */
@Controller
@RequestMapping("/master/product/prodAttrJoint")
public class ProdAttrJointController extends BaseController {
    private final String prefix = "/master/product/attr/joint";

    @Resource
    private IProdAttrJointVoService prodAttrJointVoService;

    /**
     * 查询商品属性组合列表
     */
    @RequiresPermissions("master:product:attr:joint:list")
    @PostMapping("/list")
    @ResponseBody
    public TableDataInfo list(ProdAttrJointVo prodAttrJointVo) {
        startPage();
        List<ProdAttrJointVo> list = prodAttrJointVoService.selectProdAttrJointVoList(prodAttrJointVo);
        return getDataTable(list);
    }
}
