@tnwx/accesstoken
Version:
TNWX 微信系开发脚手架之微信 accesstoken
29 lines (28 loc) • 1.06 kB
TypeScript
import { ApiConfig } from '../ApiConfig';
import { ICache } from '@tnwx/cache';
/**
* @author Javen
* @copyright javendev@126.com
* @description 企业微信 QyApiConfigKit
*/
export declare class QyApiConfigKit {
static CFG_MAP: Map<String, ApiConfig>;
static SEPARATOR: string;
static currentAppId: string;
static devMode: boolean;
static _cache: ICache;
set devMode(devMode: boolean);
static isDevMode(): boolean;
static putApiConfig(apiConfig: ApiConfig): Map<String, ApiConfig>;
static removeApiConfigByConfig(apiConfig: ApiConfig): boolean;
static removeApiConfig(appId: string, corpId: string): boolean;
static setCurrentAppId(appId: string, corpId: string): void;
static removeCurrentAppId(): void;
static get getCorpId(): string;
static get getAppId(): string;
static get getToken(): string;
static get getApiConfig(): ApiConfig;
static getApiConfigByAppId(appId: string, corpId: string): ApiConfig;
static get getCache(): ICache;
static set setCache(cache: ICache);
}