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

Method ExportAll

module/team/iml.go:39–51  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

37}
38
39func (m *imlTeamModule) ExportAll(ctx context.Context) ([]*team_dto.ExportTeam, error) {
40 teams, err := m.service.List(ctx)
41 if err != nil {
42 return nil, err
43 }
44 return utils.SliceToSlice(teams, func(t *team.Team) *team_dto.ExportTeam {
45 return &team_dto.ExportTeam{
46 Id: t.Id,
47 Name: t.Name,
48 Description: t.Description,
49 }
50 }), nil
51}
52
53func (m *imlTeamModule) GetTeam(ctx context.Context, id string) (*team_dto.Team, error) {
54 tv, err := m.service.Get(ctx, id)

Callers

nothing calls this directly

Calls 1

ListMethod · 0.65

Tested by

no test coverage detected