angularjs mobile v0.1

This commit is contained in:
life
2014-05-14 22:23:35 +08:00
parent 88ad35e9be
commit ab5e5c7b76
103 changed files with 12466 additions and 9 deletions
app
public
js
mobile
mobile2
css
index.html
js
lib
pics
topcoat
tpl

@ -85,6 +85,11 @@ func (c Note) ListTrashNotes() revel.Result {
return c.RenderJson(notes)
}
// 得到note和内容
func (c Note) GetNoteAndContent(noteId string) revel.Result {
return c.RenderJson(noteService.GetNoteAndContent(noteId, c.GetUserId()))
}
// 得到内容
func (c Note) GetNoteContent(noteId string) revel.Result {
noteContent := noteService.GetNoteContent(noteId, c.GetUserId())