package <%= packageName %>.client;

import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(value = "<%= baseName.substring(0, baseName.lastIndexOf('-') > 0 ? baseName.lastIndexOf('-') : undefined) %>-log",path = "/api")
public interface SysLogClient {
    @PostMapping("/sys-logs")
    @Headers({"Content-Type: application/json", "Accept: application/json"})
    void save(@RequestBody Map<String,Object> log);
}
