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

Method Subscribers

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

Source from the content-addressed store, hash-verified

106}
107
108func (i *imlSubscribeService) Subscribers(ctx context.Context, service string, status int) ([]*Subscribe, error) {
109 list, err := i.store.List(ctx, map[string]interface{}{"apply_status": status, "service": service}, "create_at desc")
110 if err != nil {
111 return nil, err
112 }
113 return utils.SliceToSlice(list, FromEntity), nil
114}
115
116func (i *imlSubscribeService) ListBySubscribeStatus(ctx context.Context, serviceId string, status int) ([]*Subscribe, error) {
117 w := make(map[string]interface{})

Callers

nothing calls this directly

Calls 1

ListMethod · 0.65

Tested by

no test coverage detected