condition/engine/engine_param.go

16 lines
297 B
Go
Raw Normal View History

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