category

package
v0.0.0-...-f926c12 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(categoryID string) error

func Init

func Init(c *gin.Engine)

Types

type Category

type Category struct {
	ID      primitive.ObjectID `bson:"_id, omitempty" json:"id"`
	Name    string             `bson:"name, omitempty" json:"name"`
	Columns []string           `bson:"columns, omitempty" json:"columns"`
	Owner   string             `bson:"owner, omitempty" json:"owner"`
}

func GetCategory

func GetCategory(owner string) ([]Category, error)

func GetCategoryByID

func GetCategoryByID(categoryID string) (Category, error)

func (*Category) Insert

func (category *Category) Insert() error

type Error

type Error struct {
	ErrorText string
}

func (Error) Error

func (error Error) Error() string

Jump to

Keyboard shortcuts

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