|
@@ -1,25 +0,0 @@
|
|
|
-package com.diagbot.client;
|
|
|
-
|
|
|
-import com.diagbot.client.hystrix.UserServiceHystrix;
|
|
|
-import com.diagbot.dto.RespDTO;
|
|
|
-import com.diagbot.entity.User;
|
|
|
-import org.springframework.cloud.openfeign.FeignClient;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
-
|
|
|
-
|
|
|
-/**
|
|
|
- * @Description: 请求认证授权服务器客户端
|
|
|
- * @author: gaodm
|
|
|
- * @time: 2018/8/2 13:37
|
|
|
- */
|
|
|
-@FeignClient(value = "user-service", fallback = UserServiceHystrix.class)
|
|
|
-public interface UserServiceClient {
|
|
|
-
|
|
|
- @PostMapping("/user/login")
|
|
|
- RespDTO<User> login(@RequestParam("username") String username, @RequestParam("password") String password);
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-
|