package com.ruoyi.jarvis.service; import com.ruoyi.jarvis.domain.dto.KdocsTokenInfo; public interface IKdocsOAuthService { String getAuthUrl(String state); KdocsTokenInfo getAccessTokenByCode(String code); KdocsTokenInfo refreshAccessToken(String refreshToken, String existingUserId); KdocsTokenInfo getCurrentToken(); void saveToken(String userId, KdocsTokenInfo tokenInfo); void clearToken(String userId); boolean isTokenValid(KdocsTokenInfo tokenInfo); }