package com.cf.imes.module.executor.api.ordercomponent;

import com.cf.imes.framework.common.pojo.CommonResult;
import com.cf.imes.module.executor.api.ordercomponent.dto.OrderComponentListReqDTO;
import com.cf.imes.module.executor.api.ordercomponent.dto.OrderComponentListRespDTO;
import com.cf.imes.module.executor.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 *
 *
 * @author Gqr
 * @since 2026/2/25 16:06
 */
@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - 部件管理")
public interface OrderComponentApi {
    String PREFIX = ApiConstants.PREFIX + "/order/component";

    @PostMapping(PREFIX + "/list")
    @Operation(summary = "获取订单下的部件列表")
    CommonResult<List<OrderComponentListRespDTO>> getOrderComponentList(@RequestBody OrderComponentListReqDTO dto);
}