Upgrade revel from 0.13 to 0.14
https://github.com/revel/revel/releases/tag/v0.14.0
This commit is contained in:
app
controllers
AlbumController.goAttachController.goAuthController.goBaseController.goBlogController.goFileController.goIndexController.goNoteContentHistoryController.goNoteController.goNotebookController.goPreviewController.goShareController.goTagController.goUserController.go
admin
AdminBaseController.goAdminBlogController.goAdminController.goAdminData.goAdminEmailController.goAdminSettingController.goAdminUpgradeController.goAdminUserController.goinit.go
api
ApiAuthController.goApiFileController.goApiNoteController.goApiNotebookController.goApiTagController.goApiUserController.goinit.go
init.gomember
lea
@ -23,11 +23,11 @@ func (c Album) Index() revel.Result {
|
||||
// all albums by userId
|
||||
func (c Album) GetAlbums() revel.Result {
|
||||
re := albumService.GetAlbums(c.GetUserId())
|
||||
return c.RenderJson(re)
|
||||
return c.RenderJSON(re)
|
||||
}
|
||||
func (c Album) DeleteAlbum(albumId string) revel.Result {
|
||||
re, msg := albumService.DeleteAlbum(c.GetUserId(), albumId)
|
||||
return c.RenderJson(info.Re{Ok: re, Msg: msg})
|
||||
return c.RenderJSON(info.Re{Ok: re, Msg: msg})
|
||||
}
|
||||
|
||||
// add album
|
||||
@ -40,13 +40,13 @@ func (c Album) AddAlbum(name string) revel.Result {
|
||||
re := albumService.AddAlbum(album)
|
||||
|
||||
if re {
|
||||
return c.RenderJson(album)
|
||||
return c.RenderJSON(album)
|
||||
} else {
|
||||
return c.RenderJson(false)
|
||||
return c.RenderJSON(false)
|
||||
}
|
||||
}
|
||||
|
||||
// update alnum name
|
||||
func (c Album) UpdateAlbum(albumId, name string) revel.Result {
|
||||
return c.RenderJson(albumService.UpdateAlbum(albumId, c.GetUserId(), name))
|
||||
return c.RenderJSON(albumService.UpdateAlbum(albumId, c.GetUserId(), name))
|
||||
}
|
||||
|
Reference in New Issue
Block a user