usecase

package
v0.0.0-...-ad2105c Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const SlotLength = 15

Variables

This section is empty.

Functions

func ConfirmAppointment

func ConfirmAppointment(ctx context.Context, db *access.DB, apptId *types.ConfirmationInput) error

func DeleteClient

func DeleteClient(ctx context.Context, db *access.DB, client *model.Client) (*model.Client, error)

func DeleteProvider

func DeleteProvider(ctx context.Context, db *access.DB, provider *model.Provider) (*model.Provider, error)

func GetAppointmentsForProvider

func GetAppointmentsForProvider(ctx context.Context, db *access.DB, input *types.GetScheduleInput) ([]*model.Appointment, error)

func GetClient

func GetClient(ctx context.Context, db *access.DB, client *model.Client) (*model.Client, error)

func GetProvider

func GetProvider(ctx context.Context, db *access.DB, provider *model.Provider) (*model.Provider, error)

func NewClient

func NewClient(ctx context.Context, db *access.DB, client *model.Client) (*model.Client, error)

func NewProvider

func NewProvider(ctx context.Context, db *access.DB, provider *model.Provider) (*model.Provider, error)

func RequestAppointment

func RequestAppointment(ctx context.Context, db *access.DB, reservation *types.ReservationInput) error

func SubmitSchedule

func SubmitSchedule(ctx context.Context, db *access.DB, schedule *types.SetScheduleInput) error

Allow providers to submit times they are available for appointments e.g. On Friday the 13th of August, Dr. Jekyll wants to work between 8am and 3pm

func UpdateClient

func UpdateClient(ctx context.Context, db *access.DB, client *model.Client) (*model.Client, error)

func UpdateProvider

func UpdateProvider(ctx context.Context, db *access.DB, provider *model.Provider) (*model.Provider, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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