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

Method Edit

module/team/iml.go:131–143  ·  view source on GitHub ↗
(ctx context.Context, id string, input *team_dto.EditTeam)

Source from the content-addressed store, hash-verified

129}
130
131func (m *imlTeamModule) Edit(ctx context.Context, id string, input *team_dto.EditTeam) (*team_dto.Team, error) {
132 err := m.transaction.Transaction(ctx, func(ctx context.Context) error {
133 return m.service.Save(ctx, id, &team.EditTeam{
134 Name: input.Name,
135 Description: input.Description,
136 })
137 })
138
139 if err != nil {
140 return nil, err
141 }
142 return m.GetTeam(ctx, id)
143}
144
145func (m *imlTeamModule) Delete(ctx context.Context, id string) error {
146 err := m.transaction.Transaction(ctx, func(ctx context.Context) error {

Callers

nothing calls this directly

Calls 2

GetTeamMethod · 0.95
SaveMethod · 0.65

Tested by

no test coverage detected