feat:完善信息
This commit is contained in:
13
app/api/website/controller/config.go
Normal file
13
app/api/website/controller/config.go
Normal file
@ -0,0 +1,13 @@
|
||||
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}
|
||||
}
|
||||
}
|
19
app/api/website/controller/index.go
Normal file
19
app/api/website/controller/index.go
Normal file
@ -0,0 +1,19 @@
|
||||
package controller
|
||||
|
||||
import "SciencesServer/app/service"
|
||||
|
||||
type Index struct {
|
||||
*service.Session
|
||||
local string
|
||||
}
|
||||
|
||||
type IndexHandle func(session *service.Session, local string) *Index
|
||||
|
||||
func NewIndex() IndexHandle {
|
||||
return func(session *service.Session, local string) *Index {
|
||||
return &Index{
|
||||
Session: session,
|
||||
local: local,
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user