member

package
Version: v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: GPL-2.0, GPL-2.0-or-later Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthInterceptor

func AuthInterceptor(c *revel.Controller) revel.Result

func InitService

func InitService()

最外层init.go调用 获取service, 单例

Types

type MemberBaseController

type MemberBaseController struct {
	controllers.BaseController // 不能用*BaseController
}

公用Controller, 其它Controller继承它

type MemberBlog

type MemberBlog struct {
	MemberBaseController
}

func (MemberBlog) ActiveTheme

func (c MemberBlog) ActiveTheme(themeId string) revel.Result

使用主题

func (MemberBlog) AddOrUpdateSingle

func (c MemberBlog) AddOrUpdateSingle(singleId string) revel.Result

func (MemberBlog) Base

func (c MemberBlog) Base() revel.Result

基本信息设置

func (MemberBlog) Cate

func (c MemberBlog) Cate() revel.Result

func (MemberBlog) Comment

func (c MemberBlog) Comment() revel.Result

func (MemberBlog) DeleteSingle

func (c MemberBlog) DeleteSingle(singleId string) revel.Result

func (MemberBlog) DeleteTheme

func (c MemberBlog) DeleteTheme(themeId string) revel.Result

删除主题

func (MemberBlog) DeleteThemeImage

func (c MemberBlog) DeleteThemeImage(themeId, filename string) revel.Result

func (MemberBlog) DeleteTpl

func (c MemberBlog) DeleteTpl(themeId, filename string) revel.Result

func (MemberBlog) DoAddOrUpdateSingle

func (c MemberBlog) DoAddOrUpdateSingle(singleId, title, content string) revel.Result

保存之, 包含增加与保存

func (MemberBlog) DoUpdateBlogAbstract

func (c MemberBlog) DoUpdateBlogAbstract(noteId, imgSrc, desc, abstract string) revel.Result

func (MemberBlog) ExportTheme

func (c MemberBlog) ExportTheme(themeId string) revel.Result

导出

func (MemberBlog) GetTplContent

func (c MemberBlog) GetTplContent(themeId string, filename string) revel.Result

得到文件内容

func (MemberBlog) ImportTheme

func (c MemberBlog) ImportTheme() revel.Result

导入主题

func (MemberBlog) Index

func (c MemberBlog) Index(sorter, keywords string) revel.Result

func (MemberBlog) InstallTheme

func (c MemberBlog) InstallTheme(themeId string) revel.Result

安装

func (MemberBlog) ListThemeImages

func (c MemberBlog) ListThemeImages(themeId string) revel.Result

func (MemberBlog) NewTheme

func (c MemberBlog) NewTheme() revel.Result

新建主题

func (MemberBlog) Paging

func (c MemberBlog) Paging() revel.Result

func (MemberBlog) PublicTheme

func (c MemberBlog) PublicTheme(themeId string) revel.Result

管理员公开主题

func (MemberBlog) SetUserBlogBase

func (c MemberBlog) SetUserBlogBase(userBlog info.UserBlogBase) revel.Result

-----------

func (MemberBlog) SetUserBlogComment

func (c MemberBlog) SetUserBlogComment(userBlog info.UserBlogComment) revel.Result

func (MemberBlog) SetUserBlogPaging

func (c MemberBlog) SetUserBlogPaging(perPageSize int, sortField string, isAsc bool) revel.Result

func (MemberBlog) SetUserBlogStyle

func (c MemberBlog) SetUserBlogStyle(userBlog info.UserBlogStyle) revel.Result

func (MemberBlog) Single

func (c MemberBlog) Single() revel.Result

func (MemberBlog) SortSingles

func (c MemberBlog) SortSingles(singleIds []string) revel.Result

func (MemberBlog) Theme

func (c MemberBlog) Theme() revel.Result

主题

func (MemberBlog) UpateCateIds

func (c MemberBlog) UpateCateIds(cateIds []string) revel.Result

修改分类排序

func (MemberBlog) UpdateBlogAbstract

func (c MemberBlog) UpdateBlogAbstract(noteId string) revel.Result

修改笔记的urlTitle

func (MemberBlog) UpdateBlogUrlTitle

func (c MemberBlog) UpdateBlogUrlTitle(noteId, urlTitle string) revel.Result

修改笔记的urlTitle

func (MemberBlog) UpdateCateUrlTitle

func (c MemberBlog) UpdateCateUrlTitle(cateId, urlTitle string) revel.Result

func (MemberBlog) UpdateSingleUrlTitle

func (c MemberBlog) UpdateSingleUrlTitle(singleId, urlTitle string) revel.Result

修改页面标题

func (MemberBlog) UpdateTheme

func (c MemberBlog) UpdateTheme(themeId string, isNew int) revel.Result

func (MemberBlog) UpdateTplContent

func (c MemberBlog) UpdateTplContent(themeId, filename, content string) revel.Result

func (MemberBlog) UploadThemeImage

func (c MemberBlog) UploadThemeImage(themeId string) revel.Result

上传主题图片

type MemberGroup

type MemberGroup struct {
	MemberBaseController
}

分组管理

func (MemberGroup) AddGroup

func (c MemberGroup) AddGroup(title string) revel.Result

添加分组

func (MemberGroup) AddUser

func (c MemberGroup) AddUser(groupId, email string) revel.Result

添加用户

func (MemberGroup) DeleteGroup

func (c MemberGroup) DeleteGroup(groupId string) revel.Result

func (MemberGroup) DeleteUser

func (c MemberGroup) DeleteUser(groupId, userId string) revel.Result

func (MemberGroup) Index

func (c MemberGroup) Index() revel.Result

首页, 显示所有分组和用户

func (MemberGroup) UpdateGroupTitle

func (c MemberGroup) UpdateGroupTitle(groupId, title string) revel.Result

type MemberIndex

type MemberIndex struct {
	MemberBaseController
}

func (MemberIndex) GetView

func (c MemberIndex) GetView(view string) revel.Result

func (MemberIndex) Index

func (c MemberIndex) Index() revel.Result

admin 主页

func (MemberIndex) T

func (c MemberIndex) T(t string) revel.Result

模板

type MemberUser

type MemberUser struct {
	MemberBaseController
}

func (MemberUser) Avatar

func (c MemberUser) Avatar() revel.Result

func (MemberUser) Email

func (c MemberUser) Email() revel.Result

func (MemberUser) Password

func (c MemberUser) Password() revel.Result

func (MemberUser) Username

func (c MemberUser) Username() revel.Result

Jump to

Keyboard shortcuts

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