tasks

package
v0.0.0-...-e07d5b6 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTaskHandler

func CreateTaskHandler(c *gin.Context)

func GetTaskHandler

func GetTaskHandler(c *gin.Context)

func ListTaskHandler

func ListTaskHandler(c *gin.Context)

func TaskRoutes

func TaskRoutes(app *gin.Engine)

func UpdateTaskHandler

func UpdateTaskHandler(c *gin.Context)

Types

type Task

type Task struct {
	ID          primitive.ObjectID  `json:"id,omitempty" bson:"_id,omitempty"`
	Property    primitive.ObjectID  `json:"property" bson:"property" validate:"required"`
	Assignees   []common.UserEntity `json:"assignees" bson:"assignees" validate:"required"`
	Name        string              `json:"name" bson:"name" validate:"required"`
	Description string              `json:"description" bson:"description"`
	Date        time.Time           `json:"date" bson:"date"`
	DueDate     *time.Time          `json:"dueDate" bson:"dueDate:"`
	Notes       string              `json:"notes" bson:"notes"`
	common.Timestamps
	common.Audit
}

type TaskRepository

type TaskRepository struct {
	adapters.MongoRepository[Task]
}

Jump to

Keyboard shortcuts

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