slot

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 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 CreateSlotInput

type CreateSlotInput struct {
	StartDate int `json:"start_date"`
	EndDate   int `json:"end_date"`
}

type CreateSlotResponse

type CreateSlotResponse struct {
	Rdv    model.Rdv
	Doctor model.Doctor
	Code   int
	Err    error
}

func CreateSlot

func CreateSlot(input CreateSlotInput, doctorID string) CreateSlotResponse

type DeleteSlotResponse

type DeleteSlotResponse struct {
	Deleted       bool
	UpdatedDoctor model.Doctor
	Code          int
	Err           error
}

func DeleteSlot

func DeleteSlot(slotId string, doctorId string) DeleteSlotResponse

type GetSlotByIdResponse

type GetSlotByIdResponse struct {
	Slot model.Rdv
	Code int
	Err  error
}

func GetSlotById

func GetSlotById(id string, doctorId string) GetSlotByIdResponse

type GetSlotsResponse

type GetSlotsResponse struct {
	Slots []model.Rdv
	Code  int
	Err   error
}

func GetSlots

func GetSlots(doctorId string, page int, size int) GetSlotsResponse

Jump to

Keyboard shortcuts

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