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.AssetDTO;


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

public interface AssetServiceClient {
    @GetMapping("/asset_service/single/{code}/{year}/{number}")
    AssetDTO getSingleAsset(
            @PathVariable String code,
            @PathVariable String year,
            @PathVariable String number
    );
    @PutMapping("/asset_service/update-status/{prefix}/{year}/{code}")
    void updateAssetStatus(
            @PathVariable String prefix,
            @PathVariable String year,
            @PathVariable String code,
            @RequestParam String status
    );
}
