20 lines
340 B
Go
20 lines
340 B
Go
![]() |
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,
|
||
|
}
|
||
|
}
|
||
|
}
|