//SetRuleDisableState will set the disable state of a rule at the given position and group position
SetRuleDisableState will set the disable state of a rule at the given position and group position
// SetRuleDisableState will set the disable state of a rule at the given position and group position
func SetRuleDisableState(ctx context.Context, w http.ResponseWriter, r *http.Request) {
	rq := &RuleDisableStateDO{}
	dec := json.NewDecoder(r.Body)
	err := dec.Decode(rq)
	if err != nil {
		response.WriteError(w, response.Error{Err: err.Error()}, http.StatusBadRequest)
		return
	}
	interpreter.SetRuleDisableState(rq.Position, rq.GroupPosition, rq.DisabledState)
	response.Write(w, Success{"Sucessfull"})
}
func SetRuleDisableState ( ctx context . Context , w http . ResponseWriter , r * http . Request ) { rq := & RuleDisableStateDO { } dec := json . NewDecoder ( r . Body ) err := dec . Decode ( rq ) if err != nil { response . WriteError ( w , response . Error { Err : err . Error ( ) } , http . StatusBadRequest ) return } interpreter . SetRuleDisableState ( rq . Position , rq . GroupPosition , rq . DisabledState ) response . Write ( w , Success { " " } ) }
SetRuleDisableState will set the disable state of a rule at the given position and group position
SetRuleDisableState will set the disable state of a rule at the given position and group position
//error while decoding the request param