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

Method createGroup

gate/store.go:126–135  ·  view source on GitHub ↗
(userID, groupID int64, name string)

Source from the content-addressed store, hash-verified

124}
125
126func (s *store) createGroup(userID, groupID int64, name string) error {
127 log.Debugf("store createGroup, userID:%v groupID:%v groupName:%v", userID, groupID, name)
128 req := &meta.StoreCreateGroupRequest{UserID: userID, GroupID: groupID, GroupName: name}
129 resp, err := s.api.CreateGroup(s.ctx, req)
130 if err != nil {
131 return errors.Trace(err)
132 }
133
134 return errors.Trace(resp.Header.Error())
135}
136
137func (s *store) loadGroupList(userID int64) ([]*meta.GroupInfo, error) {
138 req := &meta.StoreLoadGroupListRequest{User: userID}

Callers 1

CreateGroupMethod · 0.80

Calls 2

CreateGroupMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected