(code string)
| 52 | } |
| 53 | |
| 54 | func (this *RuleGroup) FindRuleSetWithCode(code string) *RuleSet { |
| 55 | if len(code) == 0 { |
| 56 | return nil |
| 57 | } |
| 58 | for _, ruleSet := range this.RuleSets { |
| 59 | if ruleSet.Code == code { |
| 60 | return ruleSet |
| 61 | } |
| 62 | } |
| 63 | return nil |
| 64 | } |
| 65 | |
| 66 | func (this *RuleGroup) RemoveRuleSet(id int64) { |
| 67 | result := []*RuleSet{} |