(ctx *gin.Context, id string, input *service_dto.EditService)
| 711 | } |
| 712 | |
| 713 | func (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 | |
| 724 | func (i *imlServiceController) Delete(ctx *gin.Context, id string) error { |
| 725 | return i.module.Delete(ctx, id) |
nothing calls this directly
no test coverage detected