package com.hotent.uc.manager;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hotent.base.manager.BaseManager;
import com.hotent.base.model.CommonResult;
import com.hotent.uc.model.OrgExternalUser;
import com.hotent.uc.model.User;

import java.util.List;
import java.util.Map;

/**
 * @description  钉钉api调用服务类
 * @author  yangzibin
 * @date    2024/1/2 10:09
 * @param	null
 * @return
 */
public interface DingTokenManager extends BaseManager<OrgExternalUser> {

       /**
        * @description  缓存钉钉token
        * @author  yangzibin
        * @date    2024/3/19 14:21
        * @param	orgId
        * @param	agentId
        * @param	token
        * @return  java.lang.String
        */
       String saveDingToken(String orgId,String agentId,String token,String tokenType);
       /**
        * @description  获取组织下某个应用的缓存
        * @author  yangzibin
        * @date    2024/3/19 14:24
        * @param	orgId
        * @param	agentId
        * @param	tokenType  =0 gettoken =1 accessToken
        * @return  java.lang.String
        */
       String getDingToken(String orgId,String agentId,String tokenType);
//       void removeDingToken(String orgId,String agentId,String token);


}
