Commit 535d9e30 by 刘宇峰

用户组织feign开放接口

1 parent ef269a4b
...@@ -12,16 +12,16 @@ import java.util.List; ...@@ -12,16 +12,16 @@ import java.util.List;
@FeignClient( @FeignClient(
name = "${feign.usercenter.name}", name = "${feign.usercenter.name}",
path = "${feign.usercenter.path}" + "/api/user", path = "${feign.usercenter.path}" + "/api/user",
contextId = "feignuser", contextId = "feignApiUser",
fallbackFactory = UserServiceFallbackFactory.class, fallbackFactory = UserServiceFallbackFactory.class,
decode404 = true decode404 = true
) )
public interface ApiUserService { public interface ApiUserService {
@GetMapping(value = "/api/findByAccount") @GetMapping(value = "/findByAccount")
R<List<User>> findByAccount(@RequestParam("account") String account); R<List<User>> findByAccount(@RequestParam("account") String account);
@GetMapping(value = "/api/findByUsername") @GetMapping(value = "/findByUsername")
R<List<User>> findByUsername(@RequestParam("username") String username); R<List<User>> findByUsername(@RequestParam("username") String username);
} }
...@@ -13,7 +13,7 @@ import java.util.List; ...@@ -13,7 +13,7 @@ import java.util.List;
@FeignClient( @FeignClient(
name = "${feign.usercenter.name}", name = "${feign.usercenter.name}",
path = "${feign.usercenter.path}" + "/fuser", path = "${feign.usercenter.path}" + "/fuser",
contextId = "feignuser", contextId = "feignUser",
fallbackFactory = UserServiceFallbackFactory.class, fallbackFactory = UserServiceFallbackFactory.class,
decode404 = true decode404 = true
) )
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!