CreateGroup 创建群组
(name string)
| 391 | |
| 392 | // CreateGroup 创建群组 |
| 393 | func (c *CandyClient) CreateGroup(name string) (int64, error) { |
| 394 | req := &meta.GateCreateGroupRequest{GroupName: name} |
| 395 | resp, err := c.api.CreateGroup(context.Background(), req) |
| 396 | if err != nil { |
| 397 | return -1, err |
| 398 | } |
| 399 | |
| 400 | return resp.ID, resp.Header.Error() |
| 401 | } |
| 402 | |
| 403 | // LoadGroupList 拉取群组列表 |
| 404 | func (c *CandyClient) LoadGroupList() (string, error) { |
nothing calls this directly
no test coverage detected