capacityplan

package
v0.0.0-...-57b518e Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapacityPlan

type CapacityPlan struct {
	// contains filtered or unexported fields
}

func Initialize

func Initialize(dbx *sqlx.DB, usrDB user.UserDB, projDB project.ProjectDB) CapacityPlan

func New

func New(db *sqlx.DB, cpdb CapacityPlanDB, udb user.UserDB, projDB project.ProjectDB) CapacityPlan

New creates new organization application service

func (CapacityPlan) Create

func (cp CapacityPlan) Create(c echo.Context, orgID int, sentCapacityPlans []model.CapacityPlanEntry) error

func (CapacityPlan) DeleteByID

func (cp CapacityPlan) DeleteByID(c echo.Context, capEntryID int) error

func (CapacityPlan) List

func (cp CapacityPlan) List(c echo.Context, orgID int, resourceToGet uuid.UUID, startDate time.Time, endDate time.Time) ([]model.CapacityPlanEntry, error)

func (CapacityPlan) ListSummary

func (cp CapacityPlan) ListSummary(c echo.Context, orgID int, resourceToGet uuid.UUID, startDate time.Time, endDate time.Time) ([]model.CapacityPlan, error)

func (CapacityPlan) ViewByID

func (cp CapacityPlan) ViewByID(c echo.Context, capEntryID int, orgID int) (model.CapacityPlanEntry, error)

func (CapacityPlan) ViewByUUID

func (cp CapacityPlan) ViewByUUID(c echo.Context, capEntryUUID uuid.UUID, orgID int) (model.CapacityPlanEntry, error)

type CapacityPlanDB

type CapacityPlanDB interface {
	Create(dbx sqlx.DB, orgID int, cp []model.CapacityPlanEntry) error
	List(dbx sqlx.DB, orgID int, resourceID int, startDate time.Time, endDate time.Time) ([]model.CapacityPlanEntry, error)
	DeleteByID(dbx sqlx.DB, capEntryID int) error
	ViewByID(dbx sqlx.DB, capEntryID int, orgID int) (model.CapacityPlanEntry, error)
	ViewByUUID(dbx sqlx.DB, capEntryUUID uuid.UUID, orgID int) (model.CapacityPlanEntry, error)
}

type Service

type Service interface {
	Create(c echo.Context, orgID int, capPlans []model.CapacityPlanEntry) error
	List(c echo.Context, orgID int, resourceToGet uuid.UUID, startDate time.Time, endDate time.Time) ([]model.CapacityPlanEntry, error)
	ListSummary(c echo.Context, orgID int, resourceToGet uuid.UUID, startDate time.Time, endDate time.Time) ([]model.CapacityPlan, error)
	DeleteByID(c echo.Context, capEntryID int) error
	ViewByID(c echo.Context, capEntryID int, orgID int) (model.CapacityPlanEntry, error)
	ViewByUUID(c echo.Context, capEntryUUID uuid.UUID, orgID int) (model.CapacityPlanEntry, error)
}

Directories

Path Synopsis
platform

Jump to

Keyboard shortcuts

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