project

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateProject

type CreateProject struct {
	Name         *string       `json:"name"`
	Description  *string       `json:"description,omitempty"`
	Color        *string       `json:"hex_color,omitempty"`
	Participants []Participant `json:"participants"`
	CreatedByID  *string       `json:"created_by_id,omitempty"`
	Slug         *string       `json:"slug,omitempty"`
}

CreateProject models the data to create a project

type IProject

type IProject interface {
	Create(*CreateProject) error
}

IProject define an interface for data layer access methods

type Participant

type Participant struct {
	UserID        *string    `json:"user_id"`
	StartDate     *time.Time `json:"start_date"`
	DepartureDate *time.Time `json:"departure_date,omitempty"`
}

Participant models the data the a participant

Jump to

Keyboard shortcuts

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