Commit 535d9e30 by 刘宇峰

用户组织feign开放接口

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