chore: 核心缓存位置设计完成

This commit is contained in:
手瓜一十雪 2024-08-10 18:06:40 +08:00
parent 6c87e15a52
commit 18e134b92a
2 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import { NapCatOneBot11Adapter } from "../main";
export class OneBotFriendApi {
obContext: NapCatOneBot11Adapter;
coreContext: NapCatCore;
friendList: Map<string, any> = new Map();//此处作为缓存 uin->info
constructor(obContext: NapCatOneBot11Adapter, coreContext: NapCatCore) {
this.obContext = obContext;
this.coreContext = coreContext;

View File

@ -3,6 +3,7 @@ import { NapCatOneBot11Adapter } from "../main";
export class OneBotGroupApi {
obContext: NapCatOneBot11Adapter;
coreContext: NapCatCore;
GroupMemberList: Map<string, any> = new Map();//此处作为缓存 group_id->memberUin->info
constructor(obContext: NapCatOneBot11Adapter, coreContext: NapCatCore) {
this.obContext = obContext;
this.coreContext = coreContext;