package com.inspect.system.base;

import com.inspect.base.core.domain.Response;
import com.inspect.system.base.domain.SysLoginFor;
import com.inspect.system.base.domain.SysOperateLog;
import com.inspect.system.base.factory.RemoteLogFallbackFactory;
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(
        value = "inspect-management",
        contextId = "remoteLogService",
        fallbackFactory = RemoteLogFallbackFactory.class
)
public interface RemoteLogService {
   @PostMapping({"/operlog"})
   Response<Boolean> saveLog(@RequestBody SysOperateLog var1, @RequestHeader("from-source") String var2);

   @PostMapping({"/logininfor"})
   Response<Boolean> saveLogininfor(@RequestBody SysLoginFor var1, @RequestHeader("from-source") String var2);
}
