package org.dromara.erp.controller;

import lombok.RequiredArgsConstructor;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.erp.domain.query.ErpPackQuery;
import org.dromara.erp.domain.vo.ErpPackVo;
import org.dromara.erp.service.IErpPackService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ERP 包装档案控制器
 *
 * @Author: Antigravity
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/erp/pack")
public class ErpPackController {

    private final IErpPackService erpPackService;

    /**
     * 分页查询包装档案列表
     */
    @GetMapping("/page")
    public TableDataInfo<ErpPackVo> page(ErpPackQuery query, PageQuery pageQuery) {
        return erpPackService.queryPageList(query, pageQuery);
    }

}
