AddAction 添加动作
(code string, options maps.Map)
| 117 | |
| 118 | // AddAction 添加动作 |
| 119 | func (this *RuleSet) AddAction(code string, options maps.Map) { |
| 120 | if options == nil { |
| 121 | options = maps.Map{} |
| 122 | } |
| 123 | this.Actions = append(this.Actions, &ActionConfig{ |
| 124 | Code: code, |
| 125 | Options: options, |
| 126 | }) |
| 127 | } |
| 128 | |
| 129 | // HasSpecialActions 除了Allow之外是否还有别的动作 |
| 130 | func (this *RuleSet) HasSpecialActions() bool { |