14 lines
276 B
Go
14 lines
276 B
Go
![]() |
package controller
|
||
|
|
||
|
import "SciencesServer/app/service"
|
||
|
|
||
|
type Config struct{ *service.Session }
|
||
|
|
||
|
type ConfigHandle func(session *service.Session) *Config
|
||
|
|
||
|
func NewConfig() ConfigHandle {
|
||
|
return func(session *service.Session) *Config {
|
||
|
return &Config{Session: session}
|
||
|
}
|
||
|
}
|