category

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 License: AGPL-3.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

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