controller

package
v0.0.0-...-e9e0146 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2020 License: GPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseHandler

type BaseHandler struct {
	App *system.Application
}

func (*BaseHandler) AdminCategoryList

func (h *BaseHandler) AdminCategoryList(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) AdminCategoryListPost

func (h *BaseHandler) AdminCategoryListPost(w http.ResponseWriter, r *http.Request)
func (h *BaseHandler) AdminLinkList(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) AdminLinkListPost

func (h *BaseHandler) AdminLinkListPost(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) AdminUserList

func (h *BaseHandler) AdminUserList(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) AdminUserListPost

func (h *BaseHandler) AdminUserListPost(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) ArticleAdd

func (h *BaseHandler) ArticleAdd(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) ArticleAddPost

func (h *BaseHandler) ArticleAddPost(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) ArticleDetail

func (h *BaseHandler) ArticleDetail(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) ArticleDetailPost

func (h *BaseHandler) ArticleDetailPost(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) ArticleEdit

func (h *BaseHandler) ArticleEdit(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) ArticleEditPost

func (h *BaseHandler) ArticleEditPost(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) ArticleHomeList

func (h *BaseHandler) ArticleHomeList(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) CategoryDetail

func (h *BaseHandler) CategoryDetail(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) CommentEdit

func (h *BaseHandler) CommentEdit(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) CommentEditPost

func (h *BaseHandler) CommentEditPost(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) ContentPreviewPost

func (h *BaseHandler) ContentPreviewPost(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) CurrentTpl

func (h *BaseHandler) CurrentTpl(r *http.Request) string

func (*BaseHandler) CurrentUser

func (h *BaseHandler) CurrentUser(w http.ResponseWriter, r *http.Request) (model.User, error)

func (*BaseHandler) DelCookie

func (h *BaseHandler) DelCookie(w http.ResponseWriter, name string)

func (*BaseHandler) FeedHandler

func (h *BaseHandler) FeedHandler(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) FileUpload

func (h *BaseHandler) FileUpload(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) GetCookie

func (h *BaseHandler) GetCookie(r *http.Request, name string) string

func (*BaseHandler) GetUploadImgToken

func (h *BaseHandler) GetUploadImgToken(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) QQOauthCallback

func (h *BaseHandler) QQOauthCallback(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) QQOauthHandler

func (h *BaseHandler) QQOauthHandler(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) Render

func (h *BaseHandler) Render(w http.ResponseWriter, tpl string, data interface{}, tplPath ...string) error

func (*BaseHandler) Robots

func (h *BaseHandler) Robots(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) SearchDetail

func (h *BaseHandler) SearchDetail(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) SetCookie

func (h *BaseHandler) SetCookie(w http.ResponseWriter, name, value string, days int) error

func (*BaseHandler) TagDetail

func (h *BaseHandler) TagDetail(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) UserCharge

func (h *BaseHandler) UserCharge(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) UserDetail

func (h *BaseHandler) UserDetail(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) UserEdit

func (h *BaseHandler) UserEdit(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) UserEditPost

func (h *BaseHandler) UserEditPost(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) UserLogin

func (h *BaseHandler) UserLogin(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) UserLoginPost

func (h *BaseHandler) UserLoginPost(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) UserLogout

func (h *BaseHandler) UserLogout(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) UserNotification

func (h *BaseHandler) UserNotification(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) UserSetting

func (h *BaseHandler) UserSetting(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) UserSettingPost

func (h *BaseHandler) UserSettingPost(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) UserVerifyEmail

func (h *BaseHandler) UserVerifyEmail(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) UserVerifyTelephone

func (h *BaseHandler) UserVerifyTelephone(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) ViewAtTpl

func (h *BaseHandler) ViewAtTpl(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) WeiboOauthCallback

func (h *BaseHandler) WeiboOauthCallback(w http.ResponseWriter, r *http.Request)

func (*BaseHandler) WeiboOauthHandler

func (h *BaseHandler) WeiboOauthHandler(w http.ResponseWriter, r *http.Request)

type PageData

type PageData struct {
	SiteCf        *system.SiteConf
	Title         string
	Keywords      string
	Description   string
	IsMobile      bool
	CurrentUser   model.User
	PageName      string // index/post_add/post_detail/...
	ShowPostTopAd bool
	ShowPostBotAd bool
	ShowSideAd    bool
	HotNodes      []model.CategoryMini
	NewestNodes   []model.CategoryMini
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL