MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / GetTeam

Method GetTeam

module/my-team/iml.go:118–133  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

116}
117
118func (m *imlTeamModule) GetTeam(ctx context.Context, id string) (*team_dto.Team, error) {
119 tv, err := m.teamService.Get(ctx, id)
120 if err != nil {
121 return nil, err
122 }
123
124 return &team_dto.Team{
125 Id: tv.Id,
126 Name: tv.Name,
127 Description: tv.Description,
128 CreateTime: auto.TimeLabel(tv.CreateTime),
129 UpdateTime: auto.TimeLabel(tv.UpdateTime),
130 Creator: auto.UUID(tv.Creator),
131 Updater: auto.UUID(tv.Updater),
132 }, nil
133}
134
135func (m *imlTeamModule) Search(ctx context.Context, keyword string) ([]*team_dto.Item, error) {
136 userID := utils.UserId(ctx)

Callers 1

EditMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected