mirror of
https://github.com/documize/community.git
synced 2025-08-02 20:15:26 +02:00
Per space label, icon, description
Labels introduce visual grouping and filtering of spaces.
This commit is contained in:
parent
fe8068965c
commit
a211ba051a
106 changed files with 3280 additions and 1008 deletions
|
@ -21,6 +21,7 @@ import (
|
|||
"github.com/documize/community/model/category"
|
||||
"github.com/documize/community/model/doc"
|
||||
"github.com/documize/community/model/group"
|
||||
"github.com/documize/community/model/label"
|
||||
"github.com/documize/community/model/link"
|
||||
"github.com/documize/community/model/org"
|
||||
"github.com/documize/community/model/page"
|
||||
|
@ -42,6 +43,7 @@ type Store struct {
|
|||
Document DocumentStorer
|
||||
Group GroupStorer
|
||||
Link LinkStorer
|
||||
Label LabelStorer
|
||||
Meta MetaStorer
|
||||
Organization OrganizationStorer
|
||||
Page PageStorer
|
||||
|
@ -62,6 +64,10 @@ type SpaceStorer interface {
|
|||
Update(ctx domain.RequestContext, sp space.Space) (err error)
|
||||
Delete(ctx domain.RequestContext, id string) (rows int64, err error)
|
||||
AdminList(ctx domain.RequestContext) (sp []space.Space, err error)
|
||||
IncrementCategoryCount(ctx domain.RequestContext, spaceID string) (err error)
|
||||
DecrementCategoryCount(ctx domain.RequestContext, spaceID string) (err error)
|
||||
IncrementContentCount(ctx domain.RequestContext, spaceID string) (err error)
|
||||
DecrementContentCount(ctx domain.RequestContext, spaceID string) (err error)
|
||||
}
|
||||
|
||||
// CategoryStorer defines required methods for category and category membership management
|
||||
|
@ -285,6 +291,7 @@ type GroupStorer interface {
|
|||
GetMembers(ctx domain.RequestContext) (r []group.Record, err error)
|
||||
JoinGroup(ctx domain.RequestContext, groupID, userID string) (err error)
|
||||
LeaveGroup(ctx domain.RequestContext, groupID, userID string) (err error)
|
||||
RemoveUserGroups(ctx domain.RequestContext, userID string) (err error)
|
||||
}
|
||||
|
||||
// MetaStorer provide specialist methods for global administrators.
|
||||
|
@ -295,3 +302,12 @@ type MetaStorer interface {
|
|||
Attachments(ctx domain.RequestContext, docID string) (a []attachment.Attachment, err error)
|
||||
SearchIndexCount(ctx domain.RequestContext) (c int, err error)
|
||||
}
|
||||
|
||||
// LabelStorer defines required methods for space label management
|
||||
type LabelStorer interface {
|
||||
Add(ctx domain.RequestContext, l label.Label) (err error)
|
||||
Get(ctx domain.RequestContext) (l []label.Label, err error)
|
||||
Update(ctx domain.RequestContext, l label.Label) (err error)
|
||||
Delete(ctx domain.RequestContext, id string) (rows int64, err error)
|
||||
RemoveReference(ctx domain.RequestContext, spaceID string) (err error)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue