gaodd 2 년 전
부모
커밋
a2eb6c4e02
1개의 변경된 파일21개의 추가작업 그리고 0개의 파일을 삭제
  1. 21 0
      src/main/java/com/chinaitop/depot/business/service/FeignSystemService.java

+ 21 - 0
src/main/java/com/chinaitop/depot/business/service/FeignSystemService.java

@@ -0,0 +1,21 @@
1
+package com.chinaitop.depot.business.service;
2
+
3
+import java.util.List;
4
+import java.util.Map;
5
+
6
+import org.springframework.cloud.openfeign.FeignClient;
7
+import org.springframework.web.bind.annotation.RequestMapping;
8
+import org.springframework.web.bind.annotation.RequestMethod;
9
+import org.springframework.web.bind.annotation.RequestParam;
10
+
11
+import com.chinaitop.depot.utils.HelloServiceHystrix;
12
+
13
+@FeignClient(name = "depot-system", fallback = HelloServiceHystrix.class)
14
+public interface FeignSystemService {
15
+
16
+
17
+    @RequestMapping(value = "/userRole/getUserRoleFeign", method = RequestMethod.GET)
18
+	List<Map<String, String>> getUserRoleFeign(@RequestParam(value = "userId") Integer userId);
19
+
20
+
21
+}