|
|
@@ -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
|
+}
|