mirror of
https://github.com/documize/community.git
synced 2025-08-02 20:15:26 +02:00
Overhaul the space stats module
Closes #274 All space counters are reset after document and catergory operations.
This commit is contained in:
parent
6b723568d3
commit
fad1de2e41
7 changed files with 1095 additions and 1142 deletions
|
@ -65,10 +65,7 @@ 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)
|
||||
SetStats(ctx domain.RequestContext, spaceID string) (err error)
|
||||
}
|
||||
|
||||
// CategoryStorer defines required methods for category and category membership management
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue