appointment_repository_contract

package
v0.0.0-...-f0c377f Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	GetByID(ctx context.Context, userID, appointmentID uint, roleName role.Role) (*entities.Appointment, error)
	GetByIDsAndDateTime(ctx context.Context, scheduleID uint, patientID, doctorID uint, dateTime time.Time) (*entities.Appointment, error)
	List(ctx context.Context, userID uint, roleName role.Role) ([]entities.Appointment, error)
	Create(ctx context.Context, appointment *entities.Appointment) (*entities.Appointment, error)
	Update(ctx context.Context, userID uint, appointment *entities.Appointment) (*entities.Appointment, error)
	Delete(ctx context.Context, userID uint, appointmentID uint) error
}

Jump to

Keyboard shortcuts

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