page

package
v0.0.0-...-d885e2b Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2020 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(c *gin.Context)

Add used for add new page

func AddCollaborator

func AddCollaborator(c *gin.Context)

AddCollaborator used for add collaborator for contribute into page

func AddVersion

func AddVersion(userID int, contentID int, pageID int)

AddVersion used for generate versioning page every changes

func Change

func Change(c *gin.Context)

Change used for change page

func ChangeAL

func ChangeAL(c *gin.Context)

ChangeAL used for change access level page

func Copy

func Copy(c *gin.Context)

Copy used for copy page

func CreateRestorePoint

func CreateRestorePoint(userID int, contentID int, pageID int) (output []crud.PageVersion)

CreateRestorePoint used for create versioning page every changes

func Get

func Get(c *gin.Context)

Get used for get page details

func List

func List(c *gin.Context)

List used for get page list

func ListArchive

func ListArchive(c *gin.Context)

ListArchive used for get page_archive list

func ListVersion

func ListVersion(c *gin.Context)

ListVersion used for get page versions

func Permission

func Permission(c *gin.Context)

Permission used for checking permission for this page

func Remove

func Remove(c *gin.Context)

Remove used for remove page

func RemoveArchive

func RemoveArchive(c *gin.Context)

RemoveArchive used for remove archive page

func RemoveCollaborator

func RemoveCollaborator(c *gin.Context)

RemoveCollaborator used for remove page collaborator

func Restore

func Restore(c *gin.Context)

Restore used for restore page on archive

func RevertVersion

func RevertVersion(c *gin.Context)

RevertVersion used for revert page versions

func SaveRestorePoint

func SaveRestorePoint(input []crud.PageVersion)

SaveRestorePoint used for save versioning page every changes

func Share

func Share(c *gin.Context)

Share used for share page to people

Types

type AccessLevelParam

type AccessLevelParam struct {
	AccessLevel int `json:"access_level,omitempty"`
}

AccessLevelParam used as param for change page access level

type CollaboratorParam

type CollaboratorParam struct {
	Email string `json:"email,omitempty" binding:"required,max=100"`
}

CollaboratorParam used as param for add page collaborator

type ShareParam

type ShareParam struct {
	Email     string `json:"email,omitempty" binding:"required,max=100"`
	YourEmail string `json:"your_email,omitempty" binding:"omitempty,max=100"`
}

ShareParam used as param for share page

Jump to

Keyboard shortcuts

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