package com.fs.hisStore.controller;

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

import java.util.List;

/**
 * 商品分类Controller
 *
 * @author fs
 * @date 2022-03-16
 */
@RestController
@RequestMapping("/store/store/storeProductCategory")
public class FsStoreProductCategoryScrmController extends BaseController
{
    @Autowired
    private IFsStoreProductCategoryScrmService fsStoreProductCategoryService;

    @GetMapping("/getAllList")
    public R getAllList(FsStoreProductCategoryScrm fsStoreProductCategory)
    {
        fsStoreProductCategory.setIsShow(1);
        fsStoreProductCategory.setIsDel(0);
        List<FsStoreProductCategoryScrm> list = fsStoreProductCategoryService.selectFsStoreProductCategoryList(fsStoreProductCategory);
        return R.ok().put("data", list);
    }
}
