1234567891011121314151617 |
- package context
- import "gitlab.alibaba-inc.com/pai_biz_arch/pairec/recconf"
- type Context struct {
- RequestId string
- Param IParam
- Config *recconf.RecommendConfig
- }
- func NewContext() *Context {
- context := Context{}
- return &context
- }
- func (r *Context) GetParameter(name string) interface{} {
- return r.Param.GetParameter(name)
- }
|