package com.weaver.seconddev.chapanda.feishu.cache;

import com.weaver.common.cache.base.BaseCache;
import com.weaver.common.cache.base.ModuleCacheInterface;
import com.weaver.common.cache.base.exception.IllegalCacheAccessException;
import com.weaver.seconddev.chapanda.feishu.module.FeishuTokenModuleKey;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 集成缓存类
 *
 * @author wangj
 * @version 1.00版本
 * @Date 2025-6-3
 */
@Component
public class FeishuTokenCacheKey implements ModuleCacheInterface {

    @Autowired
    private BaseCache baseCache;

    public final static String FEISHU_TOKEN = "FEISHU_TOKEN";

    @Override
    public void register() throws IllegalCacheAccessException, IllegalAccessException {
        baseCache.register(FeishuTokenModuleKey.FENSHUTOKEN_DATACENTER, this.getClass());
    }
}
