ElectricFenceService.java
675 Bytes
package cn.com.glsx.admin.api;
import cn.com.glsx.admin.dto.AddElectricFenceRequest;
import com.glsx.plat.core.web.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@FeignClient(name = "ne-shield-trialdrive-admin",
contextId = "feignFence",
path = "/trialdrive/felecfence",
decode404 = true)
public interface ElectricFenceService {
@PostMapping(value = "/add", consumes = MediaType.APPLICATION_JSON_VALUE)
R<Long> add(@RequestBody AddElectricFenceRequest request);
}