condition/engine/engine_param.go

18 lines
278 B
Go
Raw Permalink Normal View History

2023-07-20 14:55:00 +08:00
package engine
import (
"git.fsdpf.net/go/req"
)
2023-07-20 14:55:00 +08:00
type EngineParam struct {
data req.GlobalParams
2023-07-20 14:55:00 +08:00
}
func (this EngineParam) GetParam(k string) req.GlobalParams {
2023-07-20 14:55:00 +08:00
return this.data.Get(k)
}
func (this EngineParam) GetGlobalParamsUser() req.User {
2023-07-20 15:42:40 +08:00
return this.data.User()
2023-07-20 14:55:00 +08:00
}