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

Method Edit

controller/service/iml.go:713–722  ·  view source on GitHub ↗
(ctx *gin.Context, id string, input *service_dto.EditService)

Source from the content-addressed store, hash-verified

711}
712
713func (i *imlServiceController) Edit(ctx *gin.Context, id string, input *service_dto.EditService) (*service_dto.Service, error) {
714 info, err := i.Get(ctx, id)
715 if err != nil {
716 return nil, err
717 }
718 if info.ServiceKind == "ai" {
719 return i.editAIService(ctx, id, input)
720 }
721 return i.module.Edit(ctx, id, input)
722}
723
724func (i *imlServiceController) Delete(ctx *gin.Context, id string) error {
725 return i.module.Delete(ctx, id)

Callers

nothing calls this directly

Calls 3

GetMethod · 0.95
editAIServiceMethod · 0.95
EditMethod · 0.65

Tested by

no test coverage detected