package com.weaver.seconddev.chapanda.beisen.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.beisen.module.BeisenTokenModuleKey;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

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

    @Autowired
    private BaseCache baseCache;

    //科大accesstoken
    public final static String BEISEN_TOKEN = "BEISEN_TOKEN";

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