|
@@ -7,14 +7,9 @@ import cn.rankin.data.api.user.vo.TerminalDeviceVo;
|
|
|
import cn.rankin.data.api.user.vo.TerminalUserVo;
|
|
|
import cn.rankin.data.api.user.vo.WhiteUserVo;
|
|
|
import org.springframework.cloud.netflix.feign.FeignClient;
|
|
|
-import org.springframework.data.domain.Sort;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-
|
|
|
@FeignClient(name = "${service.user.name}", fallback = UserClient.UserServiceHystrix.class)
|
|
|
public interface UserClient {
|
|
|
|
|
@@ -39,10 +34,6 @@ public interface UserClient {
|
|
|
@RequestMapping(value = "/white/user/{userId}", method = RequestMethod.GET)
|
|
|
APIResult<WhiteUserVo> findWhiteUserById(@PathVariable("userId") String userId);
|
|
|
|
|
|
- @RequestMapping(value = "/user/{uid}/product/valid", method = RequestMethod.GET)
|
|
|
- List<Map<String, Object>> getProductValid(@PathVariable("uid") String uid, @RequestParam("start") Long start,
|
|
|
- @RequestParam("offset") Integer offset, @RequestParam("sortKey") String sortKey,
|
|
|
- @RequestParam("direction") Sort.Direction direction);
|
|
|
|
|
|
@Component
|
|
|
class UserServiceHystrix implements UserClient {
|
|
@@ -82,10 +73,5 @@ public interface UserClient {
|
|
|
return APIResult.error(ApiWebCode.SERVER_ERROR);
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public List<Map<String, Object>> getProductValid(String uid, Long start,
|
|
|
- Integer offset, String sortKey, Sort.Direction direction){
|
|
|
- return new ArrayList<>();
|
|
|
- }
|
|
|
}
|
|
|
}
|