package com.fs.hisStore.controller.store;

import com.fs.common.core.controller.BaseController;
import com.fs.common.core.domain.R;
import com.fs.hisStore.domain.FsStoreProductRuleScrm;
import com.fs.hisStore.service.IFsStoreProductRuleScrmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 商品规则值(规格)Controller
 *
 * @author fs
 * @date 2022-03-15
 */
@RestController
@RequestMapping("/store/store/storeProductRule")
public class FsStoreProductRuleScrmController extends BaseController
{
    @Autowired
    private IFsStoreProductRuleScrmService fsStoreProductRuleService;


    @GetMapping("/getAllList")
    public R getAllList(FsStoreProductRuleScrm fsStoreProductRule)
    {
        fsStoreProductRule.setIsDel(0);
        List<FsStoreProductRuleScrm> list = fsStoreProductRuleService.selectFsStoreProductRuleList(fsStoreProductRule);
        return R.ok().put("data",list);
    }
}
