github.com/TeaOSLab/EdgeNode@v1.3.8/internal/waf/action_base.go (about)

     1  // Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
     2  
     3  package waf
     4  
     5  type BaseAction struct {
     6  	currentActionId int64
     7  }
     8  
     9  // ActionId 读取ActionId
    10  func (this *BaseAction) ActionId() int64 {
    11  	return this.currentActionId
    12  }
    13  
    14  // SetActionId 设置Id
    15  func (this *BaseAction) SetActionId(actionId int64) {
    16  	this.currentActionId = actionId
    17  }