123456789101112131415161718192021222324252627 |
- package modules
- import (
- "fmt"
- "golang-fave/engine/wrapper"
- )
- func (this *Modules) RegisterModule_index() *Module {
- return this.newModule(false, "Pages", func(wrap *wrapper.Wrapper) {
- fmt.Printf("FrontEnd func call\n")
- }, func(wrap *wrapper.Wrapper) {
- fmt.Printf("BackEnd func call\n")
- })
- }
- func (this *Modules) RegisterAction_mysql() *Action {
- return this.newAction(false, func(wrap *wrapper.Wrapper) {
- fmt.Printf("ActFunc func call\n")
- })
- }
- // All actions here...
- // MySQL install
- // MySQL first user
- // User login
- // User logout
|