package com.interplug.qcast.biz.master;

import com.interplug.qcast.biz.master.dto.ApiResponse;
import com.interplug.qcast.biz.master.dto.quotation.ApiQuotationItemRequest;
import com.interplug.qcast.biz.master.dto.quotation.ApiQuotationItemResponse;
import java.util.List;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(name = "quotation", url = "${qsp.url}/api/quotation")
public interface QuotationService {

  // 견적서 아이템 조회
  @PostMapping("/item")
  public ApiResponse<List<ApiQuotationItemResponse>> getQuotationItem(
      @RequestHeader("Referer") String referer, @RequestBody ApiQuotationItemRequest req);
}
