UserRemoteService.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one or more
  3. * contributor license agreements. See the NOTICE file distributed with
  4. * this work for additional information regarding copyright ownership.
  5. * The ASF licenses this file to You under the Apache License, Version 2.0
  6. * (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. package com.sf.remote;
  18. import com.sf.dto.remote.PassengerRespDTO;
  19. import org.opengoofy.index12306.framework.starter.convention.result.Result;
  20. import org.springframework.cloud.openfeign.FeignClient;
  21. import org.springframework.web.bind.annotation.GetMapping;
  22. import org.springframework.web.bind.annotation.RequestParam;
  23. import java.util.List;
  24. /**
  25. * 用户远程服务调用
  26. * 公众号:马丁玩编程,回复:加群,添加马哥微信(备注:12306)获取项目资料
  27. */
  28. @FeignClient("my-user-service")
  29. public interface UserRemoteService {
  30. /**
  31. * 根据乘车人 ID 集合查询乘车人列表
  32. */
  33. @GetMapping("/api/user-service/inner/passenger/actual/query/ids")
  34. Result<List<PassengerRespDTO>> listPassengerQueryByIds(
  35. @RequestParam("username") String username, @RequestParam("ids") List<String> ids);
  36. }