models

package
v0.0.0-...-f7e1526 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	Content string `bson:"content"`
}

type CoverImage

type CoverImage struct {
	CoverImage string `bson:"cover_image"`
}

type EnumCompleted

type EnumCompleted string
const (
	Open        EnumCompleted = "OPEN"
	Completed   EnumCompleted = "COMLETED"
	Incompleted EnumCompleted = "INCOMPLETED"
	Aborted     EnumCompleted = "ABORTED"
	Accepted    EnumCompleted = "ACCEPTED"
)

type File

type File struct {
	Name string `bson:"file"`
	Path string `bson:"path"`
	Size int64  `bson:"size"`
}

type Files

type Files []File

type InCharge

type InCharge struct {
	InCharge string `bson:"in_charge"`
}

type Points

type Points struct {
	Points int `bson:"points"`
}

type Task

type Task struct {
	ID          primitive.ObjectID `bson:"_id,omitempty"`
	Title       string             `bson:"title"`
	Description string             `bson:"description"`
	CoverImage  string             `bson:"cover_image"`
	Points      int                `bson:"points"`
	Completed   EnumCompleted      `bson:"completed"`
	Owner       string             `bson:"owner"`
	InCharge    string             `bson:"in_charge"`
	Files       []File             `bson:"files"`
}

type Title

type Title struct {
	Title string `bson:"title"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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