|
@@ -1,15 +1,15 @@
|
|
-package com.ym.mec.user;
|
|
|
|
|
|
+package com.ym.mec.im;
|
|
|
|
|
|
|
|
+import com.ym.mec.common.config.FeignConfiguration;
|
|
|
|
+import com.ym.mec.task.fallback.UserFeignServiceFallback;
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
-
|
|
|
|
-import com.ym.mec.common.config.FeignConfiguration;
|
|
|
|
-import com.ym.mec.user.fallback.UserFeignServiceFallback;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
@FeignClient(name = "web-server", contextId = "UserFeignService", configuration = FeignConfiguration.class, fallback = UserFeignServiceFallback.class)
|
|
@FeignClient(name = "web-server", contextId = "UserFeignService", configuration = FeignConfiguration.class, fallback = UserFeignServiceFallback.class)
|
|
public interface UserFeignService {
|
|
public interface UserFeignService {
|
|
|
|
|
|
- @GetMapping(value = "api/createCashAccount/{userId}")
|
|
|
|
- public Boolean createCashAccount(@PathVariable("userId") Integer userId);
|
|
|
|
|
|
+ @RequestMapping(value = "api/createCashAccount")
|
|
|
|
+ Boolean createCashAccount(@RequestParam("userId") Integer userId);
|
|
}
|
|
}
|