Authored by fangyeqing

MOD:modify interface name

@@ -5,7 +5,7 @@ import com.xkl.authorization.model.TokenModel; @@ -5,7 +5,7 @@ import com.xkl.authorization.model.TokenModel;
5 /** 5 /**
6 * 对Token进行操作的接口 6 * 对Token进行操作的接口
7 */ 7 */
8 -public interface TokenManager { 8 +public interface ITokenManager {
9 9
10 /** 10 /**
11 * 创建一个token关联上指定用户 11 * 创建一个token关联上指定用户
@@ -2,7 +2,7 @@ package com.xkl.controller; @@ -2,7 +2,7 @@ package com.xkl.controller;
2 2
3 import com.xkl.authorization.annotation.Authorization; 3 import com.xkl.authorization.annotation.Authorization;
4 import com.xkl.authorization.annotation.CurrentUser; 4 import com.xkl.authorization.annotation.CurrentUser;
5 -import com.xkl.authorization.manager.TokenManager; 5 +import com.xkl.authorization.manager.ITokenManager;
6 import com.xkl.authorization.model.TokenModel; 6 import com.xkl.authorization.model.TokenModel;
7 import com.xkl.config.ResultStatus; 7 import com.xkl.config.ResultStatus;
8 import com.xkl.domain.User; 8 import com.xkl.domain.User;
@@ -31,7 +31,7 @@ public class TokenController { @@ -31,7 +31,7 @@ public class TokenController {
31 private UserRepository userRepository; 31 private UserRepository userRepository;
32 32
33 @Autowired 33 @Autowired
34 - private TokenManager tokenManager; 34 + private ITokenManager tokenManager;
35 35
36 @RequestMapping(method = RequestMethod.POST) 36 @RequestMapping(method = RequestMethod.POST)
37 @ApiOperation(value = "登录") 37 @ApiOperation(value = "登录")