package com.coder.asset.status.change.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.coder.asset.status.change.dto.AssetAllocationDTO;


@FeignClient(name = "asset-allocation-microservice", url = "http://localhost:8300")

public interface AssetAllocationServiceClient {
    @GetMapping("/asset_allocation_service/single/{code}/{year}/{number}")
    AssetAllocationDTO getSingleAssetAllocationById(
            @PathVariable String code,
            @PathVariable String year,
            @PathVariable String number
    );
    @PutMapping("/asset_allocation_service/update-status/{prefix}/{year}/{code}")
    void updateAllocationStatus(
            @PathVariable String prefix,
            @PathVariable String year,
            @PathVariable String code,
            @RequestParam String status
    );
}
