(ctx *gin.Context, driver string, input *strategy_dto.Create)
| 169 | } |
| 170 | |
| 171 | func (i *imlStrategyController) CreateGlobalStrategy(ctx *gin.Context, driver string, input *strategy_dto.Create) error { |
| 172 | input.Driver = driver |
| 173 | input.Scope = strategy_dto.ToScope(strategy_dto.ScopeGlobal) |
| 174 | |
| 175 | return i.strategyModule.Create(ctx, input) |
| 176 | } |
| 177 | |
| 178 | func (i *imlStrategyController) PublishGlobalStrategy(ctx *gin.Context, driver string) error { |
| 179 | return i.strategyModule.Publish(ctx, driver, strategy_dto.ScopeGlobal, "") |