1、实现用户注册

2、实现验证码
3、完善文档评论功能
This commit is contained in:
lifei6671
2017-05-01 12:15:55 +08:00
parent ad67558b80
commit 5b5c5b73bc
26 changed files with 380 additions and 23 deletions

View File

@@ -414,6 +414,7 @@ func (c *BookController) Create() {
book.Version = time.Now().Unix()
book.Cover = conf.GetDefaultCover()
book.Editor = "markdown"
book.Theme = "default"
err := book.Insert()
@@ -421,8 +422,11 @@ func (c *BookController) Create() {
logs.Error("Insert => ",err)
c.JsonResult(6005,"保存项目失败")
}
bookResult := models.NewBookResult()
bookResult.FindByIdentify(book.Identify,c.Member.MemberId)
bookResult,err := models.NewBookResult().FindByIdentify(book.Identify,c.Member.MemberId)
if err != nil {
beego.Error(err)
}
c.JsonResult(0,"ok",bookResult)
}