MCPcopy Index your code
hub / github.com/dearcode/candy / CreateGroup

Method CreateGroup

client/candy.go:393–401  ·  view source on GitHub ↗

CreateGroup 创建群组

(name string)

Source from the content-addressed store, hash-verified

391
392// CreateGroup 创建群组
393func (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 拉取群组列表
404func (c *CandyClient) LoadGroupList() (string, error) {

Callers

nothing calls this directly

Calls 2

CreateGroupMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected