Documentation ¶
Index ¶
- type CapacityPlan
- func (cp CapacityPlan) Create(c echo.Context, orgID int, sentCapacityPlans []model.CapacityPlanEntry) error
- func (cp CapacityPlan) DeleteByID(c echo.Context, capEntryID int) error
- func (cp CapacityPlan) List(c echo.Context, orgID int, resourceToGet uuid.UUID, startDate time.Time, ...) ([]model.CapacityPlanEntry, error)
- func (cp CapacityPlan) ListSummary(c echo.Context, orgID int, resourceToGet uuid.UUID, startDate time.Time, ...) ([]model.CapacityPlan, error)
- func (cp CapacityPlan) ViewByID(c echo.Context, capEntryID int, orgID int) (model.CapacityPlanEntry, error)
- func (cp CapacityPlan) ViewByUUID(c echo.Context, capEntryUUID uuid.UUID, orgID int) (model.CapacityPlanEntry, error)
- type CapacityPlanDB
- type Service
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 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) ListSummary ¶
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) }
Click to show internal directories.
Click to hide internal directories.