(ctx context.Context, id string)
| 51 | } |
| 52 | |
| 53 | func (m *imlTeamModule) GetTeam(ctx context.Context, id string) (*team_dto.Team, error) { |
| 54 | tv, err := m.service.Get(ctx, id) |
| 55 | if err != nil { |
| 56 | return nil, err |
| 57 | } |
| 58 | serviceCountMap, err := m.serviceService.ServiceCountByTeam(ctx, id) |
| 59 | if err != nil { |
| 60 | return nil, err |
| 61 | } |
| 62 | appCountMap, err := m.serviceService.ServiceCountByTeam(ctx, id) |
| 63 | if err != nil { |
| 64 | return nil, err |
| 65 | } |
| 66 | |
| 67 | return team_dto.ToTeam(tv, serviceCountMap[id], appCountMap[id]), nil |
| 68 | |
| 69 | } |
| 70 | |
| 71 | func (m *imlTeamModule) Search(ctx context.Context, keyword string) ([]*team_dto.Item, error) { |
| 72 | list, err := m.service.Search(ctx, keyword, nil) |
no test coverage detected