Documentation ¶
Index ¶
- func Add(c *gin.Context)
- func AddCollaborator(c *gin.Context)
- func AddVersion(userID int, contentID int, pageID int)
- func Change(c *gin.Context)
- func ChangeAL(c *gin.Context)
- func Copy(c *gin.Context)
- func CreateRestorePoint(userID int, contentID int, pageID int) (output []crud.PageVersion)
- func Get(c *gin.Context)
- func List(c *gin.Context)
- func ListArchive(c *gin.Context)
- func ListVersion(c *gin.Context)
- func Permission(c *gin.Context)
- func Remove(c *gin.Context)
- func RemoveArchive(c *gin.Context)
- func RemoveCollaborator(c *gin.Context)
- func Restore(c *gin.Context)
- func RevertVersion(c *gin.Context)
- func SaveRestorePoint(input []crud.PageVersion)
- func Share(c *gin.Context)
- type AccessLevelParam
- type CollaboratorParam
- type Page
- type ShareParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCollaborator ¶
AddCollaborator used for add collaborator for contribute into page
func AddVersion ¶
AddVersion used for generate versioning page every changes
func CreateRestorePoint ¶
func CreateRestorePoint(userID int, contentID int, pageID int) (output []crud.PageVersion)
CreateRestorePoint used for create versioning page every changes
func Permission ¶
Permission used for checking permission for this page
func RemoveCollaborator ¶
RemoveCollaborator used for remove page collaborator
func SaveRestorePoint ¶
func SaveRestorePoint(input []crud.PageVersion)
SaveRestorePoint used for save versioning page every changes
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 Page ¶
type Page struct { crud.Page crud.PageContent crud.MenuItem crud.PageVersion crud.User crud.PageCollaboration crud.Media crud.PageArchive }
Page used as crud object
Click to show internal directories.
Click to hide internal directories.