package com.cool.store.controller.webc;

import com.cool.store.request.store.StoreMaterialBlacklistQueryRequest;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.store.StoreMaterialBlacklistService;
import com.cool.store.vo.store.StoreMaterialBlacklistVO;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 门店物料黑名单 前端控制器
 * </p>
 *
 * @author wangff
 * @since 2026/3/31
 */
@Api(tags = "Mini门店物料黑名单")
@RestController
@RequestMapping("/mini/material/blacklist")
@RequiredArgsConstructor
public class MiniStoreMaterialBlacklistController {
    private final StoreMaterialBlacklistService storeMaterialBlacklistService;

    @ApiOperation("根据门店查询黑名单")
    @GetMapping("/page")
    public ResponseResult<PageInfo<StoreMaterialBlacklistVO>> page(StoreMaterialBlacklistQueryRequest request) {
        return ResponseResult.success(storeMaterialBlacklistService.pageByStoreId(request));
    }
}
