BaseCountryServeRemoteController.java 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. package edu.travel.remote;
  2. import edu.travel.dto.BaseCountryServeDto;
  3. import edu.travel.remote.base.RemoteBaseController;
  4. import edu.travel.rpc.RPCBaseResponse;
  5. import edu.travel.vo.BaseCountryServeVo;
  6. import org.springframework.cloud.openfeign.FeignClient;
  7. import org.springframework.web.bind.annotation.GetMapping;
  8. import org.springframework.web.bind.annotation.RequestBody;
  9. import org.springframework.web.bind.annotation.RestController;
  10. import java.util.List;
  11. @FeignClient(path = "/baseCountryServe",name = "commodity-dev")
  12. public interface BaseCountryServeRemoteController extends RemoteBaseController<BaseCountryServeVo, BaseCountryServeDto> {
  13. //服务国家树
  14. @GetMapping("/getCountryServeTree")
  15. public RPCBaseResponse<List<BaseCountryServeVo>> getCountryServeTree();
  16. //获取服务国家信息
  17. @GetMapping("/getCountryServeFormId")
  18. public RPCBaseResponse<BaseCountryServeVo> getFormId(String id);
  19. //更新服务国家信息
  20. @GetMapping("/updateCountryServeFormId")
  21. public RPCBaseResponse<BaseCountryServeVo> updateTargetFormId(@RequestBody BaseCountryServeDto entity);
  22. //新增服务国家信息
  23. @GetMapping("/saveCountryServeForm")
  24. public RPCBaseResponse<BaseCountryServeVo> saveFormTarget(@RequestBody BaseCountryServeDto entity);
  25. //删除服务国家信息
  26. @GetMapping("/deleteCountryServeFormId")
  27. public RPCBaseResponse<BaseCountryServeVo> deleteTargetFormId(@RequestBody List<String> ids);
  28. //获取服务国家列表
  29. @GetMapping("/listForm")
  30. public RPCBaseResponse<List<BaseCountryServeVo>> getAllForm();
  31. }