import { OB11Group } from '../../types'; import { OB11Constructor } from '../../constructor'; import BaseAction from '../BaseAction'; import { ActionName } from '../types'; import { groups } from '@/common/data'; class GetGroupList extends BaseAction { actionName = ActionName.GetGroupList; protected async _handle(payload: null) { // if (groups.length === 0) { // const groups = await NTQQGroupApi.getGroups(true) // log("get groups", groups) // } return OB11Constructor.groups(Array.from(groups.values())); } } export default GetGroupList;