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

Method AppListByTeam

service/service/iml.go:28–42  ·  view source on GitHub ↗
(ctx context.Context, teamId ...string)

Source from the content-addressed store, hash-verified

26}
27
28func (i *imlServiceService) AppListByTeam(ctx context.Context, teamId ...string) ([]*Service, error) {
29 if len(teamId) == 0 {
30 return nil, fmt.Errorf("team id is empty")
31 }
32 w := map[string]interface{}{
33 "team": teamId,
34 "as_app": true,
35 "is_delete": false,
36 }
37 list, err := i.store.List(ctx, w)
38 if err != nil {
39 return nil, err
40 }
41 return utils.SliceToSlice(list, FromEntity), nil
42}
43
44func (i *imlServiceService) ForceDelete(ctx context.Context, id string) error {
45 _, err := i.store.DeleteWhere(ctx, map[string]interface{}{"uuid": id})

Callers

nothing calls this directly

Calls 1

ListMethod · 0.65

Tested by

no test coverage detected