MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / CountMapByService

Method CountMapByService

service/subscribe/iml.go:53–61  ·  view source on GitHub ↗
(ctx context.Context, status int, service ...string)

Source from the content-addressed store, hash-verified

51}
52
53func (i *imlSubscribeService) CountMapByService(ctx context.Context, status int, service ...string) (map[string]int64, error) {
54 w := make(map[string]interface{})
55 if len(service) > 0 {
56 w["service"] = service
57 }
58
59 w["apply_status"] = status
60 return i.store.CountByGroup(ctx, "", w, "service")
61}
62
63func (i *imlSubscribeService) ListByServices(ctx context.Context, serviceIds ...string) ([]*Subscribe, error) {
64 w := make(map[string]interface{})

Callers

nothing calls this directly

Calls 1

CountByGroupMethod · 0.45

Tested by

no test coverage detected