Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category struct { model.BaseEntity OrgID string `json:"orgId"` SpaceID string `json:"spaceId"` Name string `json:"category"` }
Category represents a category within a space that is persisted to the database.
type FetchSpaceModel ¶
type FetchSpaceModel struct { Category []Category `json:"category"` Summary []SummaryModel `json:"summary"` Membership []Member `json:"membership"` }
FetchSpaceModel represents categories, summary and membership in a single payload. Designed to speed up front-end app.
type Member ¶
type Member struct { model.BaseEntity OrgID string `json:"orgId"` CategoryID string `json:"categoryId"` SpaceID string `json:"spaceId"` DocumentID string `json:"documentId"` }
Member represents 0:M association between a document and category, persisted to the database.
type SummaryModel ¶
type SummaryModel struct { Type string `json:"type"` // documents or users CategoryID string `json:"categoryId"` Count int64 `json:"count"` }
SummaryModel holds number of documents and users for space categories.
Click to show internal directories.
Click to hide internal directories.