MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / GetAllGroupsInfo

Method GetAllGroupsInfo

client/cache.go:308–319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

306}
307
308func (c *QQClient) GetAllGroupsInfo() (map[uint32]*entity.Group, error) {
309 groupsInfo, err := c.FetchGroups()
310 if err != nil {
311 return nil, err
312 }
313 groupsData := make(map[uint32]*entity.Group, len(groupsInfo))
314 for _, group := range groupsInfo {
315 groupsData[group.GroupUin] = group
316 }
317 c.debug("获取%d个群信息", len(groupsData))
318 return groupsData, err
319}

Callers 2

RefreshAllGroupsInfoMethod · 0.95

Calls 2

FetchGroupsMethod · 0.95
debugMethod · 0.95

Tested by

no test coverage detected