package com.fdkankan.feign; import com.fdkankan.goods.entity.Camera; import com.fdkankan.goods.service.ICameraService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @RestController @RequestMapping("/feign") public class platformFeign { @Autowired private ICameraService cameraService; @PostMapping("/findByChildName") public Camera findByChildName( @RequestParam(value = "childName", required = false) String childName) { return cameraService.getByChildName(childName); } }