diff --git a/app/routes/routes.go b/app/routes/routes.go index 7308adf..f7b67eb 100644 --- a/app/routes/routes.go +++ b/app/routes/routes.go @@ -75,129 +75,6 @@ func (_ tStatic) ServeModule( } -type tAuth struct {} -var Auth tAuth - - -func (_ tAuth) Login( - email string, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "email", email) - return revel.MainRouter.Reverse("Auth.Login", args).Url -} - -func (_ tAuth) DoLogin( - email string, - pwd string, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "email", email) - revel.Unbind(args, "pwd", pwd) - return revel.MainRouter.Reverse("Auth.DoLogin", args).Url -} - -func (_ tAuth) Logout( - ) string { - args := make(map[string]string) - - return revel.MainRouter.Reverse("Auth.Logout", args).Url -} - -func (_ tAuth) Demo( - ) string { - args := make(map[string]string) - - return revel.MainRouter.Reverse("Auth.Demo", args).Url -} - -func (_ tAuth) Register( - ) string { - args := make(map[string]string) - - return revel.MainRouter.Reverse("Auth.Register", args).Url -} - -func (_ tAuth) DoRegister( - email string, - pwd string, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "email", email) - revel.Unbind(args, "pwd", pwd) - return revel.MainRouter.Reverse("Auth.DoRegister", args).Url -} - -func (_ tAuth) FindPassword( - ) string { - args := make(map[string]string) - - return revel.MainRouter.Reverse("Auth.FindPassword", args).Url -} - -func (_ tAuth) DoFindPassword( - email string, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "email", email) - return revel.MainRouter.Reverse("Auth.DoFindPassword", args).Url -} - -func (_ tAuth) FindPassword2( - token string, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "token", token) - return revel.MainRouter.Reverse("Auth.FindPassword2", args).Url -} - -func (_ tAuth) FindPasswordUpdate( - token string, - pwd string, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "token", token) - revel.Unbind(args, "pwd", pwd) - return revel.MainRouter.Reverse("Auth.FindPasswordUpdate", args).Url -} - - -type tFile struct {} -var File tFile - - -func (_ tFile) UploadImage( - renderHtml string, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "renderHtml", renderHtml) - return revel.MainRouter.Reverse("File.UploadImage", args).Url -} - -func (_ tFile) UploadBlogLogo( - ) string { - args := make(map[string]string) - - return revel.MainRouter.Reverse("File.UploadBlogLogo", args).Url -} - -func (_ tFile) UploadImageJson( - renderHtml string, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "renderHtml", renderHtml) - return revel.MainRouter.Reverse("File.UploadImageJson", args).Url -} - - type tIndex struct {} var Index tIndex @@ -221,191 +98,6 @@ func (_ tIndex) Suggestion( } -type tMobile struct {} -var Mobile tMobile - - -func (_ tMobile) Index( - ) string { - args := make(map[string]string) - - return revel.MainRouter.Reverse("Mobile.Index", args).Url -} - -func (_ tMobile) Logout( - ) string { - args := make(map[string]string) - - return revel.MainRouter.Reverse("Mobile.Logout", args).Url -} - - -type tNotebook struct {} -var Notebook tNotebook - - -func (_ tNotebook) Index( - notebook interface{}, - i int, - name string, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "notebook", notebook) - revel.Unbind(args, "i", i) - revel.Unbind(args, "name", name) - return revel.MainRouter.Reverse("Notebook.Index", args).Url -} - -func (_ tNotebook) DeleteNotebook( - notebookId string, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "notebookId", notebookId) - return revel.MainRouter.Reverse("Notebook.DeleteNotebook", args).Url -} - -func (_ tNotebook) AddNotebook( - notebookId string, - title string, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "notebookId", notebookId) - revel.Unbind(args, "title", title) - return revel.MainRouter.Reverse("Notebook.AddNotebook", args).Url -} - -func (_ tNotebook) UpdateNotebookTitle( - notebookId string, - title string, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "notebookId", notebookId) - revel.Unbind(args, "title", title) - return revel.MainRouter.Reverse("Notebook.UpdateNotebookTitle", args).Url -} - - -type tNoteContentHistory struct {} -var NoteContentHistory tNoteContentHistory - - -func (_ tNoteContentHistory) ListHistories( - noteId string, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "noteId", noteId) - return revel.MainRouter.Reverse("NoteContentHistory.ListHistories", args).Url -} - - -type tBlog struct {} -var Blog tBlog - - -func (_ tBlog) SetNote2Blog( - noteId string, - isBlog bool, - isTop bool, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "noteId", noteId) - revel.Unbind(args, "isBlog", isBlog) - revel.Unbind(args, "isTop", isTop) - return revel.MainRouter.Reverse("Blog.SetNote2Blog", args).Url -} - -func (_ tBlog) SetNotebook2Blog( - notebookId string, - isBlog bool, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "notebookId", notebookId) - revel.Unbind(args, "isBlog", isBlog) - return revel.MainRouter.Reverse("Blog.SetNotebook2Blog", args).Url -} - -func (_ tBlog) Index( - userId string, - notebookId string, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "userId", userId) - revel.Unbind(args, "notebookId", notebookId) - return revel.MainRouter.Reverse("Blog.Index", args).Url -} - -func (_ tBlog) View( - noteId string, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "noteId", noteId) - return revel.MainRouter.Reverse("Blog.View", args).Url -} - -func (_ tBlog) SearchBlog( - userId string, - key string, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "userId", userId) - revel.Unbind(args, "key", key) - return revel.MainRouter.Reverse("Blog.SearchBlog", args).Url -} - -func (_ tBlog) Set( - ) string { - args := make(map[string]string) - - return revel.MainRouter.Reverse("Blog.Set", args).Url -} - -func (_ tBlog) SetUserBlogBase( - userBlog interface{}, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "userBlog", userBlog) - return revel.MainRouter.Reverse("Blog.SetUserBlogBase", args).Url -} - -func (_ tBlog) SetUserBlogComment( - userBlog interface{}, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "userBlog", userBlog) - return revel.MainRouter.Reverse("Blog.SetUserBlogComment", args).Url -} - -func (_ tBlog) SetUserBlogStyle( - userBlog interface{}, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "userBlog", userBlog) - return revel.MainRouter.Reverse("Blog.SetUserBlogStyle", args).Url -} - -func (_ tBlog) AboutMe( - userId string, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "userId", userId) - return revel.MainRouter.Reverse("Blog.AboutMe", args).Url -} - - type tNote struct {} var Note tNote @@ -536,20 +228,6 @@ func (_ tNote) Html2Image( } -type tOauth struct {} -var Oauth tOauth - - -func (_ tOauth) GithubCallback( - code string, - ) string { - args := make(map[string]string) - - revel.Unbind(args, "code", code) - return revel.MainRouter.Reverse("Oauth.GithubCallback", args).Url -} - - type tShare struct {} var Share tShare @@ -700,6 +378,328 @@ func (_ tShare) DeleteUserShareNoteAndNotebook( } +type tAuth struct {} +var Auth tAuth + + +func (_ tAuth) Login( + email string, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "email", email) + return revel.MainRouter.Reverse("Auth.Login", args).Url +} + +func (_ tAuth) DoLogin( + email string, + pwd string, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "email", email) + revel.Unbind(args, "pwd", pwd) + return revel.MainRouter.Reverse("Auth.DoLogin", args).Url +} + +func (_ tAuth) Logout( + ) string { + args := make(map[string]string) + + return revel.MainRouter.Reverse("Auth.Logout", args).Url +} + +func (_ tAuth) Demo( + ) string { + args := make(map[string]string) + + return revel.MainRouter.Reverse("Auth.Demo", args).Url +} + +func (_ tAuth) Register( + ) string { + args := make(map[string]string) + + return revel.MainRouter.Reverse("Auth.Register", args).Url +} + +func (_ tAuth) DoRegister( + email string, + pwd string, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "email", email) + revel.Unbind(args, "pwd", pwd) + return revel.MainRouter.Reverse("Auth.DoRegister", args).Url +} + +func (_ tAuth) FindPassword( + ) string { + args := make(map[string]string) + + return revel.MainRouter.Reverse("Auth.FindPassword", args).Url +} + +func (_ tAuth) DoFindPassword( + email string, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "email", email) + return revel.MainRouter.Reverse("Auth.DoFindPassword", args).Url +} + +func (_ tAuth) FindPassword2( + token string, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "token", token) + return revel.MainRouter.Reverse("Auth.FindPassword2", args).Url +} + +func (_ tAuth) FindPasswordUpdate( + token string, + pwd string, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "token", token) + revel.Unbind(args, "pwd", pwd) + return revel.MainRouter.Reverse("Auth.FindPasswordUpdate", args).Url +} + + +type tBlog struct {} +var Blog tBlog + + +func (_ tBlog) SetNote2Blog( + noteId string, + isBlog bool, + isTop bool, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "noteId", noteId) + revel.Unbind(args, "isBlog", isBlog) + revel.Unbind(args, "isTop", isTop) + return revel.MainRouter.Reverse("Blog.SetNote2Blog", args).Url +} + +func (_ tBlog) SetNotebook2Blog( + notebookId string, + isBlog bool, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "notebookId", notebookId) + revel.Unbind(args, "isBlog", isBlog) + return revel.MainRouter.Reverse("Blog.SetNotebook2Blog", args).Url +} + +func (_ tBlog) Index( + userId string, + notebookId string, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "userId", userId) + revel.Unbind(args, "notebookId", notebookId) + return revel.MainRouter.Reverse("Blog.Index", args).Url +} + +func (_ tBlog) View( + noteId string, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "noteId", noteId) + return revel.MainRouter.Reverse("Blog.View", args).Url +} + +func (_ tBlog) SearchBlog( + userId string, + key string, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "userId", userId) + revel.Unbind(args, "key", key) + return revel.MainRouter.Reverse("Blog.SearchBlog", args).Url +} + +func (_ tBlog) Set( + ) string { + args := make(map[string]string) + + return revel.MainRouter.Reverse("Blog.Set", args).Url +} + +func (_ tBlog) SetUserBlogBase( + userBlog interface{}, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "userBlog", userBlog) + return revel.MainRouter.Reverse("Blog.SetUserBlogBase", args).Url +} + +func (_ tBlog) SetUserBlogComment( + userBlog interface{}, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "userBlog", userBlog) + return revel.MainRouter.Reverse("Blog.SetUserBlogComment", args).Url +} + +func (_ tBlog) SetUserBlogStyle( + userBlog interface{}, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "userBlog", userBlog) + return revel.MainRouter.Reverse("Blog.SetUserBlogStyle", args).Url +} + +func (_ tBlog) AboutMe( + userId string, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "userId", userId) + return revel.MainRouter.Reverse("Blog.AboutMe", args).Url +} + + +type tFile struct {} +var File tFile + + +func (_ tFile) UploadImage( + renderHtml string, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "renderHtml", renderHtml) + return revel.MainRouter.Reverse("File.UploadImage", args).Url +} + +func (_ tFile) UploadBlogLogo( + ) string { + args := make(map[string]string) + + return revel.MainRouter.Reverse("File.UploadBlogLogo", args).Url +} + +func (_ tFile) UploadImageJson( + renderHtml string, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "renderHtml", renderHtml) + return revel.MainRouter.Reverse("File.UploadImageJson", args).Url +} + + +type tMobile struct {} +var Mobile tMobile + + +func (_ tMobile) Index( + ) string { + args := make(map[string]string) + + return revel.MainRouter.Reverse("Mobile.Index", args).Url +} + +func (_ tMobile) Logout( + ) string { + args := make(map[string]string) + + return revel.MainRouter.Reverse("Mobile.Logout", args).Url +} + + +type tNotebook struct {} +var Notebook tNotebook + + +func (_ tNotebook) Index( + notebook interface{}, + i int, + name string, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "notebook", notebook) + revel.Unbind(args, "i", i) + revel.Unbind(args, "name", name) + return revel.MainRouter.Reverse("Notebook.Index", args).Url +} + +func (_ tNotebook) DeleteNotebook( + notebookId string, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "notebookId", notebookId) + return revel.MainRouter.Reverse("Notebook.DeleteNotebook", args).Url +} + +func (_ tNotebook) AddNotebook( + notebookId string, + title string, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "notebookId", notebookId) + revel.Unbind(args, "title", title) + return revel.MainRouter.Reverse("Notebook.AddNotebook", args).Url +} + +func (_ tNotebook) UpdateNotebookTitle( + notebookId string, + title string, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "notebookId", notebookId) + revel.Unbind(args, "title", title) + return revel.MainRouter.Reverse("Notebook.UpdateNotebookTitle", args).Url +} + + +type tNoteContentHistory struct {} +var NoteContentHistory tNoteContentHistory + + +func (_ tNoteContentHistory) ListHistories( + noteId string, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "noteId", noteId) + return revel.MainRouter.Reverse("NoteContentHistory.ListHistories", args).Url +} + + +type tOauth struct {} +var Oauth tOauth + + +func (_ tOauth) GithubCallback( + code string, + ) string { + args := make(map[string]string) + + revel.Unbind(args, "code", code) + return revel.MainRouter.Reverse("Oauth.GithubCallback", args).Url +} + + type tUser struct {} var User tUser diff --git a/app/tmp/main.go b/app/tmp/main.go index 5720f23..0233064 100644 --- a/app/tmp/main.go +++ b/app/tmp/main.go @@ -102,118 +102,6 @@ func main() { }) - revel.RegisterController((*controllers.Auth)(nil), - []*revel.MethodType{ - &revel.MethodType{ - Name: "Login", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "email", Type: reflect.TypeOf((*string)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "DoLogin", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "email", Type: reflect.TypeOf((*string)(nil)) }, - &revel.MethodArg{Name: "pwd", Type: reflect.TypeOf((*string)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "Logout", - Args: []*revel.MethodArg{ - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "Demo", - Args: []*revel.MethodArg{ - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "Register", - Args: []*revel.MethodArg{ - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "DoRegister", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "email", Type: reflect.TypeOf((*string)(nil)) }, - &revel.MethodArg{Name: "pwd", Type: reflect.TypeOf((*string)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "FindPassword", - Args: []*revel.MethodArg{ - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "DoFindPassword", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "email", Type: reflect.TypeOf((*string)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "FindPassword2", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "token", Type: reflect.TypeOf((*string)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "FindPasswordUpdate", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "token", Type: reflect.TypeOf((*string)(nil)) }, - &revel.MethodArg{Name: "pwd", Type: reflect.TypeOf((*string)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - - }) - - revel.RegisterController((*controllers.File)(nil), - []*revel.MethodType{ - &revel.MethodType{ - Name: "UploadImage", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "renderHtml", Type: reflect.TypeOf((*string)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "UploadBlogLogo", - Args: []*revel.MethodArg{ - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "UploadImageJson", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "renderHtml", Type: reflect.TypeOf((*string)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - - }) - revel.RegisterController((*controllers.Index)(nil), []*revel.MethodType{ &revel.MethodType{ @@ -235,168 +123,6 @@ func main() { }) - revel.RegisterController((*controllers.Mobile)(nil), - []*revel.MethodType{ - &revel.MethodType{ - Name: "Index", - Args: []*revel.MethodArg{ - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "Logout", - Args: []*revel.MethodArg{ - }, - RenderArgNames: map[int][]string{ - }, - }, - - }) - - revel.RegisterController((*controllers.Notebook)(nil), - []*revel.MethodType{ - &revel.MethodType{ - Name: "Index", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "notebook", Type: reflect.TypeOf((*info.Notebook)(nil)) }, - &revel.MethodArg{Name: "i", Type: reflect.TypeOf((*int)(nil)) }, - &revel.MethodArg{Name: "name", Type: reflect.TypeOf((*string)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "DeleteNotebook", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "notebookId", Type: reflect.TypeOf((*string)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "AddNotebook", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "notebookId", Type: reflect.TypeOf((*string)(nil)) }, - &revel.MethodArg{Name: "title", Type: reflect.TypeOf((*string)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "UpdateNotebookTitle", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "notebookId", Type: reflect.TypeOf((*string)(nil)) }, - &revel.MethodArg{Name: "title", Type: reflect.TypeOf((*string)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - - }) - - revel.RegisterController((*controllers.NoteContentHistory)(nil), - []*revel.MethodType{ - &revel.MethodType{ - Name: "ListHistories", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "noteId", Type: reflect.TypeOf((*string)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - - }) - - revel.RegisterController((*controllers.Blog)(nil), - []*revel.MethodType{ - &revel.MethodType{ - Name: "SetNote2Blog", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "noteId", Type: reflect.TypeOf((*string)(nil)) }, - &revel.MethodArg{Name: "isBlog", Type: reflect.TypeOf((*bool)(nil)) }, - &revel.MethodArg{Name: "isTop", Type: reflect.TypeOf((*bool)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "SetNotebook2Blog", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "notebookId", Type: reflect.TypeOf((*string)(nil)) }, - &revel.MethodArg{Name: "isBlog", Type: reflect.TypeOf((*bool)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "Index", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "userId", Type: reflect.TypeOf((*string)(nil)) }, - &revel.MethodArg{Name: "notebookId", Type: reflect.TypeOf((*string)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "View", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "noteId", Type: reflect.TypeOf((*string)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "SearchBlog", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "userId", Type: reflect.TypeOf((*string)(nil)) }, - &revel.MethodArg{Name: "key", Type: reflect.TypeOf((*string)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "Set", - Args: []*revel.MethodArg{ - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "SetUserBlogBase", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "userBlog", Type: reflect.TypeOf((*info.UserBlogBase)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "SetUserBlogComment", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "userBlog", Type: reflect.TypeOf((*info.UserBlogComment)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "SetUserBlogStyle", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "userBlog", Type: reflect.TypeOf((*info.UserBlogStyle)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - &revel.MethodType{ - Name: "AboutMe", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "userId", Type: reflect.TypeOf((*string)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - - }) - revel.RegisterController((*controllers.Note)(nil), []*revel.MethodType{ &revel.MethodType{ @@ -510,19 +236,6 @@ func main() { }) - revel.RegisterController((*controllers.Oauth)(nil), - []*revel.MethodType{ - &revel.MethodType{ - Name: "GithubCallback", - Args: []*revel.MethodArg{ - &revel.MethodArg{Name: "code", Type: reflect.TypeOf((*string)(nil)) }, - }, - RenderArgNames: map[int][]string{ - }, - }, - - }) - revel.RegisterController((*controllers.Share)(nil), []*revel.MethodType{ &revel.MethodType{ @@ -646,6 +359,293 @@ func main() { }) + revel.RegisterController((*controllers.Auth)(nil), + []*revel.MethodType{ + &revel.MethodType{ + Name: "Login", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "email", Type: reflect.TypeOf((*string)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "DoLogin", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "email", Type: reflect.TypeOf((*string)(nil)) }, + &revel.MethodArg{Name: "pwd", Type: reflect.TypeOf((*string)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "Logout", + Args: []*revel.MethodArg{ + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "Demo", + Args: []*revel.MethodArg{ + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "Register", + Args: []*revel.MethodArg{ + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "DoRegister", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "email", Type: reflect.TypeOf((*string)(nil)) }, + &revel.MethodArg{Name: "pwd", Type: reflect.TypeOf((*string)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "FindPassword", + Args: []*revel.MethodArg{ + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "DoFindPassword", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "email", Type: reflect.TypeOf((*string)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "FindPassword2", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "token", Type: reflect.TypeOf((*string)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "FindPasswordUpdate", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "token", Type: reflect.TypeOf((*string)(nil)) }, + &revel.MethodArg{Name: "pwd", Type: reflect.TypeOf((*string)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + + }) + + revel.RegisterController((*controllers.Blog)(nil), + []*revel.MethodType{ + &revel.MethodType{ + Name: "SetNote2Blog", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "noteId", Type: reflect.TypeOf((*string)(nil)) }, + &revel.MethodArg{Name: "isBlog", Type: reflect.TypeOf((*bool)(nil)) }, + &revel.MethodArg{Name: "isTop", Type: reflect.TypeOf((*bool)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "SetNotebook2Blog", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "notebookId", Type: reflect.TypeOf((*string)(nil)) }, + &revel.MethodArg{Name: "isBlog", Type: reflect.TypeOf((*bool)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "Index", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "userId", Type: reflect.TypeOf((*string)(nil)) }, + &revel.MethodArg{Name: "notebookId", Type: reflect.TypeOf((*string)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "View", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "noteId", Type: reflect.TypeOf((*string)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "SearchBlog", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "userId", Type: reflect.TypeOf((*string)(nil)) }, + &revel.MethodArg{Name: "key", Type: reflect.TypeOf((*string)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "Set", + Args: []*revel.MethodArg{ + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "SetUserBlogBase", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "userBlog", Type: reflect.TypeOf((*info.UserBlogBase)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "SetUserBlogComment", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "userBlog", Type: reflect.TypeOf((*info.UserBlogComment)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "SetUserBlogStyle", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "userBlog", Type: reflect.TypeOf((*info.UserBlogStyle)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "AboutMe", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "userId", Type: reflect.TypeOf((*string)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + + }) + + revel.RegisterController((*controllers.File)(nil), + []*revel.MethodType{ + &revel.MethodType{ + Name: "UploadImage", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "renderHtml", Type: reflect.TypeOf((*string)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "UploadBlogLogo", + Args: []*revel.MethodArg{ + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "UploadImageJson", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "renderHtml", Type: reflect.TypeOf((*string)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + + }) + + revel.RegisterController((*controllers.Mobile)(nil), + []*revel.MethodType{ + &revel.MethodType{ + Name: "Index", + Args: []*revel.MethodArg{ + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "Logout", + Args: []*revel.MethodArg{ + }, + RenderArgNames: map[int][]string{ + }, + }, + + }) + + revel.RegisterController((*controllers.Notebook)(nil), + []*revel.MethodType{ + &revel.MethodType{ + Name: "Index", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "notebook", Type: reflect.TypeOf((*info.Notebook)(nil)) }, + &revel.MethodArg{Name: "i", Type: reflect.TypeOf((*int)(nil)) }, + &revel.MethodArg{Name: "name", Type: reflect.TypeOf((*string)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "DeleteNotebook", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "notebookId", Type: reflect.TypeOf((*string)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "AddNotebook", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "notebookId", Type: reflect.TypeOf((*string)(nil)) }, + &revel.MethodArg{Name: "title", Type: reflect.TypeOf((*string)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + &revel.MethodType{ + Name: "UpdateNotebookTitle", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "notebookId", Type: reflect.TypeOf((*string)(nil)) }, + &revel.MethodArg{Name: "title", Type: reflect.TypeOf((*string)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + + }) + + revel.RegisterController((*controllers.NoteContentHistory)(nil), + []*revel.MethodType{ + &revel.MethodType{ + Name: "ListHistories", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "noteId", Type: reflect.TypeOf((*string)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + + }) + + revel.RegisterController((*controllers.Oauth)(nil), + []*revel.MethodType{ + &revel.MethodType{ + Name: "GithubCallback", + Args: []*revel.MethodArg{ + &revel.MethodArg{Name: "code", Type: reflect.TypeOf((*string)(nil)) }, + }, + RenderArgNames: map[int][]string{ + }, + }, + + }) + revel.RegisterController((*controllers.User)(nil), []*revel.MethodType{ &revel.MethodType{