admin

package
v0.0.0-...-5e61291 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: GPL-2.0, GPL-2.0-or-later Imports: 13 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 Admin

type Admin struct {
	AdminBaseController
}

func (Admin) GetView

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

func (Admin) Index

func (c Admin) Index() revel.Result

admin 主页

func (Admin) T

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

模板

type AdminBaseController

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

公用Controller, 其它Controller继承它

type AdminBlog

type AdminBlog struct {
	AdminBaseController
}

func (AdminBlog) Index

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

admin 主页

func (AdminBlog) SetRecommend

func (c AdminBlog) SetRecommend(noteId string, recommend bool) revel.Result

type AdminData

type AdminData struct {
	AdminBaseController
}

func (AdminData) Backup

func (c AdminData) Backup() revel.Result

func (AdminData) Delete

func (c AdminData) Delete(createdTime string) revel.Result

func (AdminData) Download

func (c AdminData) Download(createdTime string) revel.Result

func (AdminData) Index

func (c AdminData) Index() revel.Result

func (AdminData) Restore

func (c AdminData) Restore(createdTime string) revel.Result

还原

func (AdminData) UpdateRemark

func (c AdminData) UpdateRemark(createdTime, remark string) revel.Result

type AdminEmail

type AdminEmail struct {
	AdminBaseController
}

func (AdminEmail) Blog

func (c AdminEmail) Blog() revel.Result

blog标签设置

func (AdminEmail) DeleteEmails

func (c AdminEmail) DeleteEmails(ids string) revel.Result

删除emails

func (AdminEmail) Demo

func (c AdminEmail) Demo() revel.Result

demo blog标签设置

func (AdminEmail) DoBlogTag

func (c AdminEmail) DoBlogTag(recommendTags, newTags string) revel.Result

func (AdminEmail) DoDemo

func (c AdminEmail) DoDemo(demoUsername, demoPassword string) revel.Result

func (AdminEmail) DoToImage

func (c AdminEmail) DoToImage(toImageBinPath string) revel.Result

func (AdminEmail) Email

func (c AdminEmail) Email() revel.Result

email配置

func (AdminEmail) List

func (c AdminEmail) List(sorter, keywords string) revel.Result

func (AdminEmail) SendEmailDialog

func (c AdminEmail) SendEmailDialog(emails string) revel.Result

send Email dialog

func (AdminEmail) SendEmailToEmails

func (c AdminEmail) SendEmailToEmails(sendEmails, latestEmailSubject, latestEmailBody string, verified, saveAsOldEmail bool) revel.Result

发送Email

func (AdminEmail) SendToUsers

func (c AdminEmail) SendToUsers(userFilterEmail, userFilterWhiteList, userFilterBlackList, latestEmailSubject, latestEmailBody string, verified, saveAsOldEmail bool) revel.Result

func (AdminEmail) SendToUsers2

func (c AdminEmail) SendToUsers2(emails, latestEmailSubject, latestEmailBody string, verified, saveAsOldEmail bool) revel.Result

发送Email

func (AdminEmail) Set

func (c AdminEmail) Set(emailHost, emailPort, emailUsername, emailPassword, emailSSL string) revel.Result

func (AdminEmail) Template

func (c AdminEmail) Template() revel.Result

func (AdminEmail) ToImage

func (c AdminEmail) ToImage() revel.Result

ToImage 长微博的bin路径phantomJs

type AdminSetting

type AdminSetting struct {
	AdminBaseController
}

func (AdminSetting) Blog

func (c AdminSetting) Blog() revel.Result

blog标签设置

func (AdminSetting) Demo

func (c AdminSetting) Demo() revel.Result

demo blog标签设置

func (AdminSetting) DoBlogTag

func (c AdminSetting) DoBlogTag(recommendTags, newTags string) revel.Result

func (AdminSetting) DoDemo

func (c AdminSetting) DoDemo(demoUsername, demoPassword string) revel.Result

func (AdminSetting) DoSiteUrl

func (c AdminSetting) DoSiteUrl(siteUrl string) revel.Result

func (AdminSetting) DoSubDomain

func (c AdminSetting) DoSubDomain(noteSubDomain, blogSubDomain, leaSubDomain, blackSubDomains, allowCustomDomain, blackCustomDomains string) revel.Result

func (AdminSetting) Email

func (c AdminSetting) Email() revel.Result

email配置

func (AdminSetting) ExportPdf

func (c AdminSetting) ExportPdf(path string) revel.Result

func (AdminSetting) HomePage

func (c AdminSetting) HomePage(homePage string) revel.Result

func (AdminSetting) Mongodb

func (c AdminSetting) Mongodb(mongodumpPath, mongorestorePath string) revel.Result

func (AdminSetting) OpenRegister

func (c AdminSetting) OpenRegister(openRegister string) revel.Result

func (AdminSetting) ShareNote

func (c AdminSetting) ShareNote(registerSharedUserId string,
	registerSharedNotebookPerms, registerSharedNotePerms []int,
	registerSharedNotebookIds, registerSharedNoteIds, registerCopyNoteIds []string) revel.Result

共享设置

func (AdminSetting) SubDomain

func (c AdminSetting) SubDomain() revel.Result

SubDomain

func (AdminSetting) UploadSize

func (c AdminSetting) UploadSize(uploadImageSize, uploadAvatarSize, uploadBlogLogoSize, uploadAttachSize float64) revel.Result

type AdminUpgrade

type AdminUpgrade struct {
	AdminBaseController
}

Upgrade controller

func (AdminUpgrade) UpgradeBeta3ToBeta4

func (c AdminUpgrade) UpgradeBeta3ToBeta4() revel.Result

func (AdminUpgrade) UpgradeBetaToBeta2

func (c AdminUpgrade) UpgradeBetaToBeta2() revel.Result

func (AdminUpgrade) UpgradeBlog

func (c AdminUpgrade) UpgradeBlog() revel.Result

type AdminUser

type AdminUser struct {
	AdminBaseController
}

func (AdminUser) Add

func (c AdminUser) Add() revel.Result

func (AdminUser) DoResetPwd

func (c AdminUser) DoResetPwd(userId, pwd string) revel.Result

func (AdminUser) Index

func (c AdminUser) Index(sorter, keywords string, pageSize int) revel.Result

func (AdminUser) Register

func (c AdminUser) Register(email, pwd string) revel.Result

添加

func (AdminUser) ResetPwd

func (c AdminUser) ResetPwd(userId string) revel.Result

修改帐户

Jump to

Keyboard shortcuts

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