1
0
Fork 0
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:
Harvey Kandola 2017-10-08 20:53:25 -04:00
parent bc72db711f
commit 318abef710
9 changed files with 315 additions and 29 deletions

View file

@ -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"`
}