REM:
1. 增加用户管理功能
This commit is contained in:
HuangXin 2020-07-20 11:28:27 +08:00
parent 86456fef59
commit 0c02f3d741
3 changed files with 60 additions and 3 deletions

View File

@ -9,7 +9,7 @@ import java.security.NoSuchAlgorithmException;
* *
* @author <huangxin@cmhi.chinamoblie.com> * @author <huangxin@cmhi.chinamoblie.com>
*/ */
public interface UserAccountCacheManager { public interface UserAccountManager {
/** /**
* Gets user token. * Gets user token.
* *

View File

@ -0,0 +1,57 @@
package com.dispose.manager.impl;
import com.dispose.common.ErrorCode;
import com.dispose.manager.UserAccountManager;
import com.dispose.mapper.UserAccountMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.security.NoSuchAlgorithmException;
@Component
@Slf4j
public class UserAccountManagerImpl implements UserAccountManager {
@Resource
private UserAccountMapper userAccountMapper;
@Override
public String getUserToken(String username) throws NoSuchAlgorithmException {
return null;
}
@Override
public int getUsrPwdErrTimes(String username) {
return 0;
}
@Override
public void setUserPwdErrTimes(String username, Integer errTimes) {
}
@Override
public void cleanUserToken(String username) {
}
@Override
public ErrorCode verifyUserLogin(String username, String token) {
return null;
}
@Override
public ErrorCode verifyToken(String token) {
return null;
}
@Override
public String getUsernameByToken(String token) {
return null;
}
@Override
public ErrorCode verifyPermission(String token) {
return null;
}
}

View File

@ -3,7 +3,7 @@ package com.dispose.service.impl;
import com.dispose.common.ConstValue; import com.dispose.common.ConstValue;
import com.dispose.common.ErrorCode; import com.dispose.common.ErrorCode;
import com.dispose.config.DisposeConfigure; import com.dispose.config.DisposeConfigure;
import com.dispose.manager.UserAccountCacheManager; import com.dispose.manager.UserAccountManager;
import com.dispose.mapper.UserAccountMapper; import com.dispose.mapper.UserAccountMapper;
import com.dispose.pojo.entity.UserAccount; import com.dispose.pojo.entity.UserAccount;
import com.dispose.pojo.po.MulReturnType; import com.dispose.pojo.po.MulReturnType;
@ -24,7 +24,7 @@ import java.security.NoSuchAlgorithmException;
public class UserAccountServiceImpl implements UserAccountService { public class UserAccountServiceImpl implements UserAccountService {
@Resource @Resource
private UserAccountCacheManager userAccountCacheManager; private UserAccountManager userAccountCacheManager;
@Resource @Resource
private UserAccountMapper userAccountMapper; private UserAccountMapper userAccountMapper;