mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	完善 OAuth2CodeServiceImplTest 单元测试
This commit is contained in:
		@@ -26,8 +26,8 @@ public interface OAuth2CodeService {
 | 
			
		||||
     * @param state 状态
 | 
			
		||||
     * @return 授权码的信息
 | 
			
		||||
     */
 | 
			
		||||
    OAuth2CodeDO createAuthorizationCode(Long userId, Integer userType, String clientId, List<String> scopes,
 | 
			
		||||
                                         String redirectUri, String state);
 | 
			
		||||
    OAuth2CodeDO createAuthorizationCode(Long userId, Integer userType, String clientId,
 | 
			
		||||
                                         List<String> scopes, String redirectUri, String state);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 使用授权码
 | 
			
		||||
 
 | 
			
		||||
@@ -33,8 +33,8 @@ public class OAuth2CodeServiceImpl implements OAuth2CodeService {
 | 
			
		||||
    private OAuth2CodeMapper oauth2CodeMapper;
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public OAuth2CodeDO createAuthorizationCode(Long userId, Integer userType, String clientId, List<String> scopes,
 | 
			
		||||
                                                String redirectUri, String state) {
 | 
			
		||||
    public OAuth2CodeDO createAuthorizationCode(Long userId, Integer userType, String clientId,
 | 
			
		||||
                                                List<String> scopes, String redirectUri, String state) {
 | 
			
		||||
        OAuth2CodeDO codeDO = new OAuth2CodeDO().setCode(generateCode())
 | 
			
		||||
                .setUserId(userId).setUserType(userType)
 | 
			
		||||
                .setClientId(clientId).setScopes(scopes)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user