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



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

public interface CallLoggingServiceClient {
    @GetMapping("/call_logging_service/single/{code}/{year}/{number}")
    CallLoggingDTO getSingleCallLoggingInfo(
            @PathVariable String code,
            @PathVariable String year,
            @PathVariable String number
    );
    @PutMapping("/call_logging_service/update-status/{prefix}/{year}/{code}")
    void updateCallStatus(
            @PathVariable String prefix,
            @PathVariable String year,
            @PathVariable String code,
            @RequestParam String status
    );
}
