mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-20 19:07:56 +08:00
搭建框架
This commit is contained in:
13
controllers/document.go
Normal file
13
controllers/document.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package controllers
|
||||
|
||||
type DocumentController struct {
|
||||
BaseController
|
||||
}
|
||||
|
||||
func (p *DocumentController) Index() {
|
||||
p.TplName = "document/index.tpl"
|
||||
}
|
||||
|
||||
func (p *DocumentController) Read() {
|
||||
p.TplName = "document/kancloud.tpl"
|
||||
}
|
Reference in New Issue
Block a user