package org.springblade.modules.feign;

import org.springblade.common.constant.CommonConstant;
import org.springblade.core.tool.api.R;
import org.springblade.modules.entity.FwInfoEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(
	//定义Feign指向的service-id
	value = CommonConstant.APPLICATION_RHZFFW_NAME
)
public interface RhzfFwFeign {
	String API_PREFIX = "/api/rhzfFw";

	@PostMapping(API_PREFIX + "/fwSave")
	R fwSave(@RequestBody FwInfoEntity fwInfoEntity);

	@PostMapping(API_PREFIX + "/fwUpdateById")
	R fwUpdateById(@RequestBody FwInfoEntity fwInfoEntity);
}
