platformFeign.java 587 B

12345678910111213141516171819202122
  1. package com.fdkankan.feign;
  2. import com.fdkankan.goods.entity.Camera;
  3. import com.fdkankan.goods.service.ICameraService;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.web.bind.annotation.*;
  6. @RestController
  7. @RequestMapping("/feign")
  8. public class platformFeign {
  9. @Autowired
  10. private ICameraService cameraService;
  11. @PostMapping("/findByChildName")
  12. public Camera findByChildName(
  13. @RequestParam(value = "childName", required = false) String childName) {
  14. return cameraService.getByChildName(childName);
  15. }
  16. }