category

package
v3.2.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2019 License: AGPL-3.0 Imports: 1 Imported by: 20

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 {
	GroupType  string `json:"type"` // documents or users
	CategoryID string `json:"categoryId"`
	Count      int64  `json:"count"`
}

SummaryModel holds number of documents and users for space categories.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL