package com.cool.store.controller.webc;

import com.cool.store.common.InsertGroup;
import com.cool.store.common.UpdateGroup;
import com.cool.store.context.CurrentUserHolder;
import com.cool.store.request.config.ConfigItemCategoryQueryRequest;
import com.cool.store.request.config.ConfigItemCategoryUpdateRequest;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.config.ConfigItemCategoryService;
import com.cool.store.vo.config.ConfigItemCategoryVO;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Auther zx_szh
 * @Date 2026/3/10 09:46
 * @Version 1.0
 */
@Api(tags = "标准店小程序-配置大类管理")
@RestController
@RequestMapping("/mini/configItemCategory")
@RequiredArgsConstructor
public class MiniConfigItemCategoryController {

    private final ConfigItemCategoryService configItemCategoryService;

    @ApiOperation("分页查询配置大类")
    @PostMapping("/queryPage")
    public ResponseResult<PageInfo<ConfigItemCategoryVO>> queryPage(@RequestBody ConfigItemCategoryQueryRequest request) {
        return ResponseResult.success(configItemCategoryService.queryPage(request));
    }

}
