style
This commit is contained in:
@ -75,82 +75,241 @@ func (_ tStatic) ServeModule(
|
||||
}
|
||||
|
||||
|
||||
type tFile struct {}
|
||||
var File tFile
|
||||
type tAuth struct {}
|
||||
var Auth tAuth
|
||||
|
||||
|
||||
func (_ tFile) UploadImage(
|
||||
renderHtml string,
|
||||
func (_ tAuth) Login(
|
||||
email string,
|
||||
) string {
|
||||
args := make(map[string]string)
|
||||
|
||||
revel.Unbind(args, "renderHtml", renderHtml)
|
||||
return revel.MainRouter.Reverse("File.UploadImage", args).Url
|
||||
revel.Unbind(args, "email", email)
|
||||
return revel.MainRouter.Reverse("Auth.Login", args).Url
|
||||
}
|
||||
|
||||
func (_ tFile) UploadBlogLogo(
|
||||
func (_ tAuth) DoLogin(
|
||||
email string,
|
||||
pwd string,
|
||||
) string {
|
||||
args := make(map[string]string)
|
||||
|
||||
return revel.MainRouter.Reverse("File.UploadBlogLogo", args).Url
|
||||
revel.Unbind(args, "email", email)
|
||||
revel.Unbind(args, "pwd", pwd)
|
||||
return revel.MainRouter.Reverse("Auth.DoLogin", args).Url
|
||||
}
|
||||
|
||||
func (_ tFile) UploadImageJson(
|
||||
renderHtml string,
|
||||
func (_ tAuth) Logout(
|
||||
) string {
|
||||
args := make(map[string]string)
|
||||
|
||||
revel.Unbind(args, "renderHtml", renderHtml)
|
||||
return revel.MainRouter.Reverse("File.UploadImageJson", args).Url
|
||||
return revel.MainRouter.Reverse("Auth.Logout", args).Url
|
||||
}
|
||||
|
||||
|
||||
type tNotebook struct {}
|
||||
var Notebook tNotebook
|
||||
|
||||
|
||||
func (_ tNotebook) Index(
|
||||
notebook interface{},
|
||||
i int,
|
||||
name string,
|
||||
func (_ tAuth) Demo(
|
||||
) 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
|
||||
return revel.MainRouter.Reverse("Auth.Demo", args).Url
|
||||
}
|
||||
|
||||
func (_ tNotebook) DeleteNotebook(
|
||||
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)
|
||||
return revel.MainRouter.Reverse("Notebook.DeleteNotebook", args).Url
|
||||
revel.Unbind(args, "isBlog", isBlog)
|
||||
return revel.MainRouter.Reverse("Blog.SetNotebook2Blog", args).Url
|
||||
}
|
||||
|
||||
func (_ tNotebook) AddNotebook(
|
||||
func (_ tBlog) Index(
|
||||
userId string,
|
||||
notebookId string,
|
||||
title string,
|
||||
) string {
|
||||
args := make(map[string]string)
|
||||
|
||||
revel.Unbind(args, "userId", userId)
|
||||
revel.Unbind(args, "notebookId", notebookId)
|
||||
revel.Unbind(args, "title", title)
|
||||
return revel.MainRouter.Reverse("Notebook.AddNotebook", args).Url
|
||||
return revel.MainRouter.Reverse("Blog.Index", args).Url
|
||||
}
|
||||
|
||||
func (_ tNotebook) UpdateNotebookTitle(
|
||||
notebookId string,
|
||||
title string,
|
||||
func (_ tBlog) View(
|
||||
noteId 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
|
||||
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 tIndex struct {}
|
||||
var Index tIndex
|
||||
|
||||
|
||||
func (_ tIndex) Index(
|
||||
) string {
|
||||
args := make(map[string]string)
|
||||
|
||||
return revel.MainRouter.Reverse("Index.Index", args).Url
|
||||
}
|
||||
|
||||
func (_ tIndex) Suggestion(
|
||||
addr string,
|
||||
suggestion string,
|
||||
) string {
|
||||
args := make(map[string]string)
|
||||
|
||||
revel.Unbind(args, "addr", addr)
|
||||
revel.Unbind(args, "suggestion", suggestion)
|
||||
return revel.MainRouter.Reverse("Index.Suggestion", 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
|
||||
}
|
||||
|
||||
|
||||
@ -558,241 +717,82 @@ func (_ tUser) UpdateLeftIsMin(
|
||||
}
|
||||
|
||||
|
||||
type tAuth struct {}
|
||||
var Auth tAuth
|
||||
type tFile struct {}
|
||||
var File tFile
|
||||
|
||||
|
||||
func (_ tAuth) Login(
|
||||
email string,
|
||||
func (_ tFile) UploadImage(
|
||||
renderHtml string,
|
||||
) string {
|
||||
args := make(map[string]string)
|
||||
|
||||
revel.Unbind(args, "email", email)
|
||||
return revel.MainRouter.Reverse("Auth.Login", args).Url
|
||||
revel.Unbind(args, "renderHtml", renderHtml)
|
||||
return revel.MainRouter.Reverse("File.UploadImage", args).Url
|
||||
}
|
||||
|
||||
func (_ tAuth) DoLogin(
|
||||
email string,
|
||||
pwd string,
|
||||
func (_ tFile) UploadBlogLogo(
|
||||
) string {
|
||||
args := make(map[string]string)
|
||||
|
||||
revel.Unbind(args, "email", email)
|
||||
revel.Unbind(args, "pwd", pwd)
|
||||
return revel.MainRouter.Reverse("Auth.DoLogin", args).Url
|
||||
return revel.MainRouter.Reverse("File.UploadBlogLogo", args).Url
|
||||
}
|
||||
|
||||
func (_ tAuth) Logout(
|
||||
func (_ tFile) UploadImageJson(
|
||||
renderHtml string,
|
||||
) string {
|
||||
args := make(map[string]string)
|
||||
|
||||
return revel.MainRouter.Reverse("Auth.Logout", args).Url
|
||||
revel.Unbind(args, "renderHtml", renderHtml)
|
||||
return revel.MainRouter.Reverse("File.UploadImageJson", args).Url
|
||||
}
|
||||
|
||||
func (_ tAuth) Demo(
|
||||
|
||||
type tNotebook struct {}
|
||||
var Notebook tNotebook
|
||||
|
||||
|
||||
func (_ tNotebook) Index(
|
||||
notebook interface{},
|
||||
i int,
|
||||
name string,
|
||||
) string {
|
||||
args := make(map[string]string)
|
||||
|
||||
return revel.MainRouter.Reverse("Auth.Demo", args).Url
|
||||
revel.Unbind(args, "notebook", notebook)
|
||||
revel.Unbind(args, "i", i)
|
||||
revel.Unbind(args, "name", name)
|
||||
return revel.MainRouter.Reverse("Notebook.Index", 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,
|
||||
func (_ tNotebook) DeleteNotebook(
|
||||
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
|
||||
return revel.MainRouter.Reverse("Notebook.DeleteNotebook", args).Url
|
||||
}
|
||||
|
||||
func (_ tBlog) View(
|
||||
noteId string,
|
||||
func (_ tNotebook) AddNotebook(
|
||||
notebookId string,
|
||||
title string,
|
||||
) string {
|
||||
args := make(map[string]string)
|
||||
|
||||
revel.Unbind(args, "noteId", noteId)
|
||||
return revel.MainRouter.Reverse("Blog.View", args).Url
|
||||
revel.Unbind(args, "notebookId", notebookId)
|
||||
revel.Unbind(args, "title", title)
|
||||
return revel.MainRouter.Reverse("Notebook.AddNotebook", args).Url
|
||||
}
|
||||
|
||||
func (_ tBlog) SearchBlog(
|
||||
userId string,
|
||||
key string,
|
||||
func (_ tNotebook) UpdateNotebookTitle(
|
||||
notebookId string,
|
||||
title 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 tIndex struct {}
|
||||
var Index tIndex
|
||||
|
||||
|
||||
func (_ tIndex) Index(
|
||||
) string {
|
||||
args := make(map[string]string)
|
||||
|
||||
return revel.MainRouter.Reverse("Index.Index", args).Url
|
||||
}
|
||||
|
||||
func (_ tIndex) Suggestion(
|
||||
addr string,
|
||||
suggestion string,
|
||||
) string {
|
||||
args := make(map[string]string)
|
||||
|
||||
revel.Unbind(args, "addr", addr)
|
||||
revel.Unbind(args, "suggestion", suggestion)
|
||||
return revel.MainRouter.Reverse("Index.Suggestion", 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
|
||||
revel.Unbind(args, "notebookId", notebookId)
|
||||
revel.Unbind(args, "title", title)
|
||||
return revel.MainRouter.Reverse("Notebook.UpdateNotebookTitle", args).Url
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user