1.4.5.2
This commit is contained in:
12
EdgeAdmin/internal/web/actions/default/about/init.go
Normal file
12
EdgeAdmin/internal/web/actions/default/about/init.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package about
|
||||
|
||||
import "github.com/iwind/TeaGo"
|
||||
|
||||
func init() {
|
||||
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
||||
server.
|
||||
Prefix("/about").
|
||||
Get("/qq", new(QqAction)).
|
||||
EndAll()
|
||||
})
|
||||
}
|
||||
15
EdgeAdmin/internal/web/actions/default/about/qq.go
Normal file
15
EdgeAdmin/internal/web/actions/default/about/qq.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package about
|
||||
|
||||
import "github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
||||
|
||||
type QqAction struct {
|
||||
actionutils.ParentAction
|
||||
}
|
||||
|
||||
func (this *QqAction) Init() {
|
||||
this.Nav("", "", "")
|
||||
}
|
||||
|
||||
func (this *QqAction) RunGet(params struct{}) {
|
||||
this.Show()
|
||||
}
|
||||
Reference in New Issue
Block a user