package com.cf.imes.module.executor.controller.admin.orderImportTask;

import com.cf.imes.framework.common.pojo.CommonResult;
import com.cf.imes.framework.common.pojo.PageResult;
import com.cf.imes.module.executor.controller.admin.orderImportTask.vo.OrderImportTaskPageReqVO;
import com.cf.imes.module.executor.controller.admin.orderImportTask.vo.OrderImportTaskRespVO;
import com.cf.imes.module.executor.service.orderImport.OrderImportTaskService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import jakarta.annotation.Resource;
import jakarta.validation.Valid;

/**
 * @author Gqr
 * @since 2025/5/15 9:19
 */
@Tag(name = "管理后台 - 生产单导入任务管理")
@RestController
@RequestMapping("/executor/order/task")
public class OrderImportTaskController {

    @Resource
    private OrderImportTaskService orderImportTaskService;

    @GetMapping("")
    @Operation(summary = "生产单导入任务查询")
    public CommonResult<PageResult<OrderImportTaskRespVO>> webCadOrderImport(@Valid OrderImportTaskPageReqVO reqVO) {
        return CommonResult.success(orderImportTaskService.getPage(reqVO));
    }
}
