You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
452 B
25 lines
452 B
package income |
|
|
|
import ( |
|
"context" |
|
) |
|
|
|
// GetBubbleMeta . |
|
func (s *Service) GetBubbleMeta(c context.Context) (data map[int64][]int, err error) { |
|
var id int64 |
|
data = make(map[int64][]int) |
|
for { |
|
var meta map[int64][]int |
|
meta, id, err = s.dao.GetBubbleMeta(c, id, int64(_limitSize)) |
|
if err != nil { |
|
return |
|
} |
|
if len(meta) == 0 { |
|
break |
|
} |
|
for avID, bTypes := range meta { |
|
data[avID] = append(data[avID], bTypes...) |
|
} |
|
} |
|
return |
|
}
|
|
|