2023-07-20 14:55:00 +08:00
|
|
|
package engine
|
|
|
|
|
2024-05-08 22:32:51 +08:00
|
|
|
import (
|
|
|
|
"git.fsdpf.net/go/req"
|
|
|
|
)
|
2023-07-20 14:55:00 +08:00
|
|
|
|
|
|
|
type EngineParam struct {
|
2024-05-08 22:32:51 +08:00
|
|
|
data req.GlobalParams
|
2023-07-20 14:55:00 +08:00
|
|
|
}
|
|
|
|
|
2024-05-08 22:32:51 +08:00
|
|
|
func (this EngineParam) GetParam(k string) req.GlobalParams {
|
2023-07-20 14:55:00 +08:00
|
|
|
return this.data.Get(k)
|
|
|
|
}
|
|
|
|
|
2024-05-08 22:32:51 +08:00
|
|
|
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
|
|
|
}
|