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

Method AppList

service/service/iml.go:113–125  ·  view source on GitHub ↗
(ctx context.Context, appIds ...string)

Source from the content-addressed store, hash-verified

111}
112
113func (i *imlServiceService) AppList(ctx context.Context, appIds ...string) ([]*Service, error) {
114 w := make(map[string]interface{})
115 if len(appIds) > 0 {
116 w["uuid"] = appIds
117 }
118 w["as_app"] = true
119 w["is_delete"] = false
120 list, err := i.store.List(ctx, w)
121 if err != nil {
122 return nil, err
123 }
124 return utils.SliceToSlice(list, FromEntity), nil
125}
126
127func (i *imlServiceService) Check(ctx context.Context, id string, rule map[string]bool) (*Service, error) {
128 pro, err := i.Get(ctx, id)

Callers

nothing calls this directly

Calls 1

ListMethod · 0.65

Tested by

no test coverage detected