(ctx context.Context)
| 37 | } |
| 38 | |
| 39 | func (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 | |
| 53 | func (m *imlTeamModule) GetTeam(ctx context.Context, id string) (*team_dto.Team, error) { |
| 54 | tv, err := m.service.Get(ctx, id) |