123456789101112131415161718192021222324252627282930313233343536373839 |
- package modules
- import (
- "fmt"
- "golang-fave/engine/wrapper"
- )
- func (this *Modules) RegisterModule_index() *Module {
- return &Module{
- Id: "index",
- Name: "Pages",
- FrontEnd: func(mod *Modules, wrap *wrapper.Wrapper) {
- fmt.Printf("FrontEnd func call\n")
- },
- BackEnd: func(mod *Modules, wrap *wrapper.Wrapper) {
- fmt.Printf("BackEnd func call\n")
- },
- }
- }
- func (this *Modules) RegisterAction_test() *Action {
- return &Action{
- Id: "test",
- ActFunc: func(mod *Modules, wrap *wrapper.Wrapper) {
- fmt.Printf("ActFunc func call\n")
- },
- }
- }
- /*
- func (this *Modules) module_index_frontend(wrap *wrapper.Wrapper) {
- //
- }
- func (this *Modules) module_index_backend(wrap *wrapper.Wrapper) {
- //
- }
- */
|