|
@@ -2,13 +2,10 @@ package com.diagbot.client;
|
|
|
|
|
|
import com.diagbot.client.hystrix.UserServiceHystrix;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
-import com.diagbot.entity.User;
|
|
|
import com.diagbot.dto.UserOrgDTO;
|
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestHeader;
|
|
|
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@@ -22,9 +19,6 @@ import java.util.Map;
|
|
|
@FeignClient(value = "user-service", fallback = UserServiceHystrix.class)
|
|
|
public interface UserServiceClient {
|
|
|
|
|
|
- @PostMapping(value = "/user/{username}")
|
|
|
- RespDTO<User> getUser(@RequestHeader(value = "Authorization") String token, @PathVariable("username") String username);
|
|
|
-
|
|
|
@PostMapping(value = "/user/getUserAndOrg")
|
|
|
RespDTO<Map<Long, UserOrgDTO>> getUserAndOrg(@RequestBody List<Long> userIds);
|
|
|
|