(ctx *gin.Context, model string, input *ai_local_dto.Update)
| 368 | } |
| 369 | |
| 370 | func (i *imlLocalModelController) Update(ctx *gin.Context, model string, input *ai_local_dto.Update) error { |
| 371 | switch input.Disable { |
| 372 | case true: |
| 373 | return i.module.Disable(ctx, model) |
| 374 | default: |
| 375 | return i.module.Enable(ctx, model) |
| 376 | } |
| 377 | } |