5 changed files with 58 additions and 1 deletions
@ -0,0 +1,20 @@ |
|||||
|
package org.dromara.business.feign; |
||||
|
|
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@FeignClient(name = "gateway",path = "sample") |
||||
|
public interface FeignDeviceGroup { |
||||
|
|
||||
|
|
||||
|
@GetMapping("/manage/api/v1/device/group/feign/user") |
||||
|
public List<Integer> listDeviceGroup(@RequestParam("userId") Long userId); |
||||
|
|
||||
|
|
||||
|
@GetMapping("/manage/api/v1/device/group/feign/device") |
||||
|
public List<String> listDevice(@RequestParam("userId") Long userId); |
||||
|
} |
Loading…
Reference in new issue