搭建框架

This commit is contained in:
Minho
2017-04-21 18:20:35 +08:00
parent d58087f723
commit 67486f0866
727 changed files with 831224 additions and 37 deletions

View File

@@ -1,5 +1,7 @@
package controllers
import "strings"
type BookController struct {
BaseController
}
@@ -22,8 +24,17 @@ func (p *BookController) Users() {
p.TplName = "book/users.tpl"
}
func (p *BookController) Create() {
p.TplName = "book/create.tpl"
func (c *BookController) Create() {
if c.Ctx.Input.IsPost() {
book_name := strings.TrimSpace(c.GetString("book_name",""))
identify := strings.TrimSpace(c.GetString("identify",""))
description := strings.TrimSpace(c.GetString("description",""))
privately_owned := c.GetString("privately_owned")
comment_status := c.GetString("comment_status")
}
c.JsonResult(6001,"error")
}
// Edit 编辑项目.