mirror of
https://github.com/documize/community.git
synced 2025-08-02 20:15:26 +02:00
bulk data load methods for space and document views
This commit is contained in:
parent
bc72db711f
commit
318abef710
9 changed files with 315 additions and 29 deletions
|
@ -36,3 +36,11 @@ type SummaryModel struct {
|
|||
CategoryID string `json:"categoryId"`
|
||||
Count int64 `json:"count"`
|
||||
}
|
||||
|
||||
// FetchSpaceModel represents categories, summary and membership in a single payload.
|
||||
// Designed to speed up front-end app.
|
||||
type FetchSpaceModel struct {
|
||||
Category []Category `json:"category"`
|
||||
Summary []SummaryModel `json:"summary"`
|
||||
Membership []Member `json:"membership"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue