appointment

package
v0.0.0-...-0f0028d Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Svc

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

Svc is the service for appointment related operations

func NewAppointmentSvc

func NewAppointmentSvc(db *gorm.DB) *Svc

NewAppointmentSvc creates a new svc instance

func (Svc) CreateAppointment

func (svc Svc) CreateAppointment(startTime time.Time, endTime time.Time, address string, note string) (*domaintype.Appointment, error)

CreateAppointment creates a new appointment

func (Svc) GetAllAppointments

func (svc Svc) GetAllAppointments() []*domaintype.Appointment

GetAllAppointments gets all Appointments

func (Svc) GetAppointment

func (svc Svc) GetAppointment(id string) (*domaintype.Appointment, error)

GetAppointment gets an Appointment by ID

Jump to

Keyboard shortcuts

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