()
| 306 | } |
| 307 | |
| 308 | func (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 | } |
no test coverage detected