model

package
v0.0.0-...-e498ba9 Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Board

type Board struct {
	ID    string  `json:"_id" bson:"_id"`
	Name  string  `json:"name" bson:"name"`
	Lists []*List `json:"lists" bson:"lists"`
}

type Card

type Card struct {
	ID            string  `json:"_id" bson:"_id"`
	Name          string  `json:"name" bson:"name"`
	DueDate       *string `json:"dueDate" bson:"dueDate"`
	ParentBoardID string  `json:"parentBoardId" bson:"parentBoardId"`
	ParentListID  string  `json:"parentListId" bson:"parentListId"`
}

type CardIdentifier

type CardIdentifier struct {
	ID            string `json:"_id" bson:"_id"`
	ParentListID  string `json:"parentListId" bson:"parentListId"`
	ParentBoardID string `json:"parentBoardId" bson:"parentBoardId"`
}

type CardMetaData

type CardMetaData struct {
	ID      string  `json:"_id" bson:"_id"`
	Name    string  `json:"name" bson:"name"`
	DueDate *string `json:"dueDate" bson:"dueDate"`
}

type ChangeCardOrder

type ChangeCardOrder struct {
	BoardID    string `json:"boardId" bson:"boardId"`
	SrcListID  string `json:"srcListId" bson:"srcListId"`
	DestListID string `json:"destListId" bson:"destListId"`
	CardID     string `json:"cardId" bson:"cardId"`
	SrcIdx     int    `json:"srcIdx" bson:"srcIdx"`
	DestIdx    int    `json:"destIdx" bson:"destIdx"`
}

type ChangeListOrder

type ChangeListOrder struct {
	BoardID string `json:"boardId" bson:"boardId"`
	ListID  string `json:"listId" bson:"listId"`
	SrcIdx  int    `json:"srcIdx" bson:"srcIdx"`
	DestIdx int    `json:"destIdx" bson:"destIdx"`
}

type List

type List struct {
	ID            string          `json:"_id" bson:"_id"`
	Name          string          `json:"name" bson:"name"`
	ParentBoardID string          `json:"parentBoardId" bson:"parentBoardId"`
	Cards         []*CardMetaData `json:"cards" bson:"cards"`
}

type ListIdentifier

type ListIdentifier struct {
	ID            string `json:"_id" bson:"_id"`
	ParentBoardID string `json:"parentBoardId" bson:"parentBoardId"`
}

type NewBoard

type NewBoard struct {
	Name string `json:"name" bson:"name"`
}

type NewCard

type NewCard struct {
	Name          string  `json:"name" bson:"name"`
	DueDate       *string `json:"dueDate" bson:"dueDate"`
	ParentBoardID string  `json:"parentBoardId" bson:"parentBoardId"`
	ParentListID  string  `json:"parentListId" bson:"parentListId"`
}

type NewList

type NewList struct {
	Name          string `json:"name" bson:"name"`
	ParentBoardID string `json:"parentBoardId" bson:"parentBoardId"`
}

Jump to

Keyboard shortcuts

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