vocabularylist

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(vocabularyListID string) error

func DeleteWithCategoryID

func DeleteWithCategoryID(categoryID primitive.ObjectID) error

func Init

func Init(c *gin.Engine)

Types

type Error

type Error struct {
	ErrorText string
}

func (Error) Error

func (error Error) Error() string

type VocabularyList

type VocabularyList struct {
	Name       string             `bson:"name, omitempty" json:"name"`
	ID         primitive.ObjectID `bson:"_id, omitempty" json:"id"`
	CategoryID primitive.ObjectID `bson:"categoryID, omitempty" json:"categoryId"`
	Owner      string             `bson:"owner, omitempty" json:"owner"`
}

func GetVocabularyList

func GetVocabularyList(categoryID string) ([]VocabularyList, error)

func (*VocabularyList) Insert

func (vocabularyList *VocabularyList) Insert() error

Jump to

Keyboard shortcuts

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