|
@@ -16,54 +16,54 @@ import java.util.List;
|
|
public interface FeignUserTokenManager extends UserTokenManager {
|
|
public interface FeignUserTokenManager extends UserTokenManager {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @GetMapping("/user-token/token/{token}")
|
|
+ @RequestMapping(value = "/user-token/token/{token}",method = RequestMethod.GET)
|
|
- UserToken getByToken(@PathVariable String token);
|
|
+ UserToken getByToken(@PathVariable("token") String token);
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @GetMapping("/user-token/user/{userId}")
|
|
+ @RequestMapping(value = "/user-token/user/{userId}",method = RequestMethod.GET)
|
|
- List<UserToken> getByUserId(@PathVariable String userId);
|
|
+ List<UserToken> getByUserId(@PathVariable("userId") String userId);
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @GetMapping("/user-token/user/{userId}/logged")
|
|
+ @RequestMapping(value = "/user-token/user/{userId}/logged",method = RequestMethod.GET)
|
|
- boolean userIsLoggedIn(@PathVariable String userId);
|
|
+ boolean userIsLoggedIn(@PathVariable("userId") String userId);
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @GetMapping("/user-token/token/{token}/logged")
|
|
+ @RequestMapping(value = "/user-token/token/{token}/logged",method = RequestMethod.GET)
|
|
- boolean tokenIsLoggedIn(@PathVariable String token);
|
|
+ boolean tokenIsLoggedIn(@PathVariable("token") String token);
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @GetMapping("/user-token/user/total")
|
|
+ @RequestMapping(value = "/user-token/user/total",method = RequestMethod.GET)
|
|
long totalUser();
|
|
long totalUser();
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @GetMapping("/user-token/token/total")
|
|
+ @RequestMapping(value = "/user-token/token/total",method = RequestMethod.GET)
|
|
long totalToken();
|
|
long totalToken();
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @GetMapping("/user-token}")
|
|
+ @RequestMapping(value = "/user-token",method = RequestMethod.GET)
|
|
List<UserToken> allLoggedUser();
|
|
List<UserToken> allLoggedUser();
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @DeleteMapping("/user-token/user/{userId}")
|
|
+ @RequestMapping(value = "/user-token/user/{userId}",method = RequestMethod.DELETE)
|
|
- void signOutByUserId(@PathVariable String userId);
|
|
+ void signOutByUserId(@PathVariable("userId") String userId);
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @DeleteMapping("/user-token/token/{token}")
|
|
+ @RequestMapping(value = "/user-token/token/{token}",method = RequestMethod.DELETE)
|
|
- void signOutByToken(@PathVariable String token);
|
|
+ void signOutByToken(@PathVariable("token") String token);
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @PutMapping("/user-token/user/{userId}/{state}")
|
|
+ @RequestMapping(value = "/user-token/user/{userId}/{state}",method = RequestMethod.PUT)
|
|
- void changeUserState(@PathVariable String userId, @PathVariable TokenState state);
|
|
+ void changeUserState(@PathVariable("userId") String userId, @PathVariable("state") TokenState state);
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @PutMapping("/user-token/token/{token}/{state}")
|
|
+ @RequestMapping(value = "/user-token/token/{token}/{state}",method = RequestMethod.PUT)
|
|
- void changeTokenState(String token, TokenState state);
|
|
+ void changeTokenState(@PathVariable("token") String token, @PathVariable("state") TokenState state);
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @PostMapping("/user-token/{token}/{userId}/{maxInactiveInterval}")
|
|
+ @RequestMapping(value = "/user-token/{token}/{userId}/{maxInactiveInterval}",method = RequestMethod.POST)
|
|
- UserToken signIn(@PathVariable String token, @PathVariable String userId, @PathVariable long maxInactiveInterval);
|
|
+ UserToken signIn(@PathVariable("token") String token, @PathVariable("userId") String userId, @PathVariable("maxInactiveInterval") long maxInactiveInterval);
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @GetMapping("/user-token/{token}/touch")
|
|
+ @RequestMapping(value = "/user-token/{token}/touch",method = RequestMethod.GET)
|
|
- void touch(String token);
|
|
+ void touch(@PathVariable("token") String token);
|
|
}
|
|
}
|