mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
Support for document draft-live publication workflows
This commit is contained in:
parent
bde0091a4a
commit
9235c183c5
14 changed files with 828 additions and 697 deletions
|
@ -112,6 +112,9 @@ const (
|
|||
// TypeSearched records user performing document keyword search.
|
||||
// Metadata field should contain search terms.
|
||||
TypeSearched Type = 15
|
||||
|
||||
// TypePublished happens when a document is moved from Draft to Live.
|
||||
TypePublished Type = 16
|
||||
)
|
||||
|
||||
// TypeName returns one-work descriptor for activity type
|
||||
|
@ -147,6 +150,8 @@ func TypeName(t Type) string {
|
|||
return "Version"
|
||||
case TypeSearched:
|
||||
return "Search"
|
||||
case TypePublished:
|
||||
return "Publish"
|
||||
}
|
||||
|
||||
return ""
|
||||
|
|
|
@ -13,6 +13,7 @@ package space
|
|||
|
||||
import (
|
||||
"github.com/documize/community/model"
|
||||
"github.com/documize/community/model/workflow"
|
||||
)
|
||||
|
||||
// Space defines a container for documents.
|
||||
|
@ -22,6 +23,10 @@ type Space struct {
|
|||
OrgID string `json:"orgId"`
|
||||
UserID string `json:"userId"`
|
||||
Type Scope `json:"folderType"`
|
||||
|
||||
// Lifecycle stores the default value all new documents are given upon creation.
|
||||
Lifecycle workflow.Lifecycle `json:"lifecycle"`
|
||||
|
||||
// Likes stores the question to ask the user such as 'Did this help you?'.
|
||||
// An empty value tells us liking is not allowed.
|
||||
Likes string `json:"likes"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue