controllers

package
v0.0.0-...-d95f0ed Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachmentController

type AttachmentController struct {
	BaseController
}

func (*AttachmentController) Delete

func (this *AttachmentController) Delete()

func (*AttachmentController) Download

func (this *AttachmentController) Download()

func (*AttachmentController) Image

func (this *AttachmentController) Image()

func (*AttachmentController) Page

func (this *AttachmentController) Page()

func (*AttachmentController) Upload

func (this *AttachmentController) Upload()

type AuthorController

type AuthorController struct {
	BaseController
}

func (*AuthorController) AuthLogin

func (this *AuthorController) AuthLogin()

auth login

func (*AuthorController) Index

func (this *AuthorController) Index()

login index

func (*AuthorController) Login

func (this *AuthorController) Login()

login

func (*AuthorController) Logout

func (this *AuthorController) Logout()

logout

type BaseController

type BaseController struct {
	TemplateController
}

type CollectionController

type CollectionController struct {
	BaseController
}

func (*CollectionController) Add

func (this *CollectionController) Add()

func (*CollectionController) Cancel

func (this *CollectionController) Cancel()

type DocumentController

type DocumentController struct {
	BaseController
}

func (*DocumentController) Add

func (this *DocumentController) Add()

add document

func (*DocumentController) Delete

func (this *DocumentController) Delete()

delete document

func (*DocumentController) History

func (this *DocumentController) History()

document history

func (*DocumentController) Index

func (this *DocumentController) Index()

document index

func (*DocumentController) Move

func (this *DocumentController) Move()

move document

func (*DocumentController) Save

func (this *DocumentController) Save()

save document

type FollowController

type FollowController struct {
	BaseController
}

func (*FollowController) Add

func (this *FollowController) Add()

func (*FollowController) Cancel

func (this *FollowController) Cancel()

type ImageController

type ImageController struct {
	BaseController
}

func (*ImageController) Upload

func (this *ImageController) Upload()

type JsonResponse

type JsonResponse struct {
	Code     int                    `json:"code"`
	Message  interface{}            `json:"message"`
	Data     interface{}            `json:"data"`
	Redirect map[string]interface{} `json:"redirect"`
}

type MainController

type MainController struct {
	BaseController
}

func (*MainController) About

func (this *MainController) About()

func (*MainController) Default

func (this *MainController) Default()

func (*MainController) Index

func (this *MainController) Index()

func (*MainController) Search

func (this *MainController) Search()

搜索,支持根据标题和内容搜索

func (*MainController) Tag

func (this *MainController) Tag()

type PageController

type PageController struct {
	BaseController
}

func (*PageController) Display

func (this *PageController) Display()

document share display

func (*PageController) Edit

func (this *PageController) Edit()

page edit

func (*PageController) Export

func (this *PageController) Export()

export file

func (*PageController) Modify

func (this *PageController) Modify()

page modify

func (*PageController) View

func (this *PageController) View()

document page view

type SpaceController

type SpaceController struct {
	BaseController
}

func (*SpaceController) AddMember

func (this *SpaceController) AddMember()

func (*SpaceController) Collection

func (this *SpaceController) Collection()

func (*SpaceController) Document

func (this *SpaceController) Document()

func (*SpaceController) Index

func (this *SpaceController) Index()

func (*SpaceController) List

func (this *SpaceController) List()

func (*SpaceController) Member

func (this *SpaceController) Member()

func (*SpaceController) ModifyMember

func (this *SpaceController) ModifyMember()

func (*SpaceController) RemoveMember

func (this *SpaceController) RemoveMember()

func (*SpaceController) Search

func (this *SpaceController) Search()

type TemplateController

type TemplateController struct {
	beego.Controller
	UserId string
	User   map[string]string
	// contains filtered or unexported fields
}

func (*TemplateController) DebugLog

func (this *TemplateController) DebugLog(message string)

func (*TemplateController) ErrorLog

func (this *TemplateController) ErrorLog(message string)

func (*TemplateController) GetClientIp

func (this *TemplateController) GetClientIp() string

get client ip

func (*TemplateController) GetDocumentPrivilege

func (this *TemplateController) GetDocumentPrivilege(space map[string]string) (isVisit, isEditor, isManager bool)

func (*TemplateController) GetLogInfoByCtx

func (this *TemplateController) GetLogInfoByCtx() map[string]interface{}

func (*TemplateController) GetRangeInt

func (this *TemplateController) GetRangeInt(key string, def int, min int, max int) (n int, err error)

func (*TemplateController) InfoLog

func (this *TemplateController) InfoLog(message string)

func (*TemplateController) IsGet

func (this *TemplateController) IsGet() bool

is Get

func (*TemplateController) IsPost

func (this *TemplateController) IsPost() bool

is Post

func (*TemplateController) IsRoot

func (this *TemplateController) IsRoot() bool

是否是超级管理员

func (*TemplateController) JsonError

func (this *TemplateController) JsonError(message interface{}, data ...interface{})

return json error

func (*TemplateController) JsonSuccess

func (this *TemplateController) JsonSuccess(message interface{}, data ...interface{})

return json success

func (*TemplateController) Prepare

func (this *TemplateController) Prepare()

prepare

func (*TemplateController) RecordLog

func (this *TemplateController) RecordLog(message string, level int)

insert action log

func (*TemplateController) SetPaginator

func (this *TemplateController) SetPaginator(per int, nums int64) *utils.Paginator

paginator

func (*TemplateController) ViewError

func (this *TemplateController) ViewError(content string, redirect ...string)

view layout

func (*TemplateController) ViewLayout

func (this *TemplateController) ViewLayout(viewName, layout string)

view layout

func (*TemplateController) WarningLog

func (this *TemplateController) WarningLog(message string)

type UploadJsonResponse

type UploadJsonResponse struct {
	Code     int                    `json:"code"`
	Message  interface{}            `json:"message"`
	Data     interface{}            `json:"data"`
	Redirect map[string]interface{} `json:"redirect"`
	Error    interface{}            `json:"error"`
}

type UploadResponse

type UploadResponse struct {
	Success int    `json:"success"`
	Message string `json:"message"`
	Url     string `json:"url"`
}

type UserController

type UserController struct {
	BaseController
}

func (*UserController) Follow

func (this *UserController) Follow()

func (*UserController) FollowPage

func (this *UserController) FollowPage()

func (*UserController) FollowUser

func (this *UserController) FollowUser()

func (*UserController) Index

func (this *UserController) Index()

func (*UserController) Info

func (this *UserController) Info()

func (*UserController) List

func (this *UserController) List()

Jump to

Keyboard shortcuts

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