(userID, groupID int64, name string)
| 124 | } |
| 125 | |
| 126 | func (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 | |
| 137 | func (s *store) loadGroupList(userID int64) ([]*meta.GroupInfo, error) { |
| 138 | req := &meta.StoreLoadGroupListRequest{User: userID} |
no test coverage detected